Serhiy Storchaka added the comment:
This is not Tkinter bug, this is normal Tk behavior. Here is minimal reproducer
on Tcl/Tk :
button .b -text Click me
bind .b Button-1 {tk_messageBox -message The button is sunken!}
pack .b
I suppose the button is left sunken because the message
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11387
___
Dmitry Andreychuk added the comment:
Now I see that my message may look like a suggestion to add an encyclopedic
definition of number there. Sorry.
Actually I was talking about requirements for user-defined types to make them
work with int(). Something like: If x has __int__() method return
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6167
___
___
eryksun added the comment:
The constructor tries __trunc__ (truncate toward 0) if __int__ isn't defined.
If __trunc__ doesn't return an instance of int, it calls the intermediate
result's __int__ method. In terms of the numbers ABCs, numbers.Real requires
__trunc__, which should return a
Changes by Claudiu.Popa pcmantic...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
___
___
Claudiu.Popa added the comment:
Serhiy, could you please have a look at this patch? Given the fact that you
committed my last dbm patch, I hope you have a couple of minutes to have a look
at this one as well.
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4350
___
___
Roundup Robot added the comment:
New changeset 6c468df214dc by Ned Deily in branch '3.4':
Issue #17095: Fix Modules/Setup *shared* support.
http://hg.python.org/cpython/rev/6c468df214dc
New changeset 227ce85bdbe0 by Ned Deily in branch 'default':
Issue #17095: Fix Modules/Setup *shared*
Ned Deily added the comment:
Committed for release in 3.4.2 and 3.5.0.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17095
Alexei Mozhaev added the comment:
Hi! Are there any updates on the issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20147
___
___
Claudiu.Popa added the comment:
There are other modules with support for bytes filenames in their API:
bz2
codecs
gzip
lzma
pipes.Template
tarfile
tokenize
fileinput
filecmp
sndhdr
STINNER Victor added the comment:
Serhiy wrote:
I think that even if we accept this change (I am unsure in this), a warning
should be raised only when bytes and unicode objects are equal. When they are
not equal, a warning should not be raised, because this matches Python 3
behavior.
Python
New submission from Lennart Regebro:
Pystone uses some floats in Python 3, while in Python 2 it's all integers. And
since it is, as far as I can tell, based on Dhrystone, it should be all ints.
After fixing the division in the loop to be a floor division it runs the same
as in Python 2. I've
STINNER Victor added the comment:
According to the name of variables (IntLoc2 = IntLoc3 // IntLoc1), I agree
that integers should be used. Since the performances can be different between
int and float, you should change the version and explain your change in the
changelog (in the top
Ned Deily added the comment:
It appears that Apple's update to editline in OS X 10.9 Mavericks has also
broken this patch; with refreshing, it still works with the system editline in
10.8. So, like the fix for Issue18458, we need to make sure that the fix works
with either version of a
Abhilash Raj added the comment:
David: I had a look at the examples and documentation as you said. I found some
support for multipart/related in the form of `add_related` and `set_related`
methods. But I am still confused on how to make content_manager recognize
miltipart/related messages.
Lennart Regebro added the comment:
Yes, good point, I added this in a new diff.
--
Added file: http://bugs.python.org/file35443/pystone12.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21634
Serhiy Storchaka added the comment:
Patch is synchronized with tip. It also removes Studbutton and Tributton
classes which depend on removed methods. These classes are not documented, not
tested and never worked in supported Python versions. I even not found
reasonable links in Google, except
New submission from drevicko:
difflib.SequenceMatcher.get_matching_blocks() last lines:
non_adjacent.append( (la, lb, 0) )
self.matching_blocks = non_adjacent
return map(Match._make, self.matching_blocks)
should be something like:
non_adjacent.append( (la, lb,
Ned Batchelder added the comment:
Serhiy, thanks for the configuration tip. But you seem to be missing my point,
which is that beginners need the default to be a little more friendly. I don't
want to make it bad for experienced users, of course. I doubt Unix users will
be confused by
fumihiko kakuma added the comment:
Checking mock.py(version 1.0.1) it seems that patch.stopall does not support
patch.dict. Does it have any problem to support ptch.dict by stopall.
I made the attached patch file for this. It seems to work well. How about this?
But I don't know why sys.modules
Berker Peksag added the comment:
This is a duplicate of issue 20742.
--
nosy: +berker.peksag
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - 2to3 zip fixer doesn't fix for loops.
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +RobertG, benjamin.peterson
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20742
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +gregory.p.smith
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21627
___
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Removed file: http://bugs.python.org/file34125/test-config-helpsource-33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20640
___
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Removed file: http://bugs.python.org/file34128/test-config-helpsource-27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20640
___
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35446/test-cfg-help-34.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20640
___
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35447/test-cfg-help-27.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20640
___
Thomas Dybdahl Ahle added the comment:
I don't know if it's worth the overhead to implement a multiselect, given we
only expose a median function.
I've rewritten select2 to be intro, just falling back on sorting. This doesn't
appear to degrade the performance.
I also added np.median to the
STINNER Victor added the comment:
+Unde Python 3 version 1.1 would use the normal division
I guess that it's a typo: Under Python 3 ...?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21634
Lennart Regebro added the comment:
Oups, yes, that's a typo.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21634
___
___
Python-bugs-list
New submission from Claudiu.Popa:
Hello! The attached patch fixes a crash for the logging tests on Windows.
That's because the tests assume that socket.AF_UNIX exists. The actual
traceback is:
[1/1] test_logging
test test_logging crashed -- Traceback (most recent call last):
File
Roundup Robot added the comment:
New changeset 1318324aa93a by Victor Stinner in branch '3.4':
Issue #21634: Fix pystone micro-benchmark: use floor division instead of true
http://hg.python.org/cpython/rev/1318324aa93a
New changeset 95b7acdc0f24 by Victor Stinner in branch 'default':
(Merge
STINNER Victor added the comment:
Thanks the patch, I fixed pystone in Python 3.4 and 3.5.
--
resolution: - fixed
status: open - closed
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Oh, it looks like a follow-up of the issue #21583 (change
f1393e82660819996e74c7eeddc5ae1f38b15f0a), the test was already buggy but not
run before.
--
nosy: +diana, haypo, python-dev
versions: +Python 3.4
___
STINNER Victor added the comment:
+if threading and hasattr(socket, AF_UNIX):
The check on socket.AF_UNIX attribute looks redundant: there is already a
decorator on the testcase class to skip the whole test case. No?
--
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +neologix, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21627
___
___
Lennart Regebro added the comment:
Awesome, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21634
___
___
Python-bugs-list mailing list
Claudiu.Popa added the comment:
No, because the tests will be skipped after the assignment of the address
family.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21636
___
STINNER Victor added the comment:
I have no opinon on close() vs setting CLOEXEC flag, but you should use
_Py_set_inheritable(fd, 0, NULL). _Py_set_inheritable() is able to set the
CLOEXEC flag in a single syscall, instead of 2 syscalls.
_close_fds_by_brute_force() is already very slow when
STINNER Victor added the comment:
No, because the tests will be skipped after the assignment of the address
family.
Ah yes, the body of the class is executed before the decorator.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d7a491c6cbdb by Victor Stinner in branch '3.4':
Issue #21636: Fix test_logging, skip UNIX stream (AF_UNIX) tests on Windows.
http://hg.python.org/cpython/rev/d7a491c6cbdb
New changeset b49e366556ba by Victor Stinner in branch 'default':
(Merge 3.4)
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21636
___
STINNER Victor added the comment:
Since Python 3.4, all file descriptors directly created by Python are marked as
non-inheritable. It should now be safe to use subprocess with close_fds=False,
but the default value was not changed because third party modules (especially
code written in C) may
R. David Murray added the comment:
My idea (which I haven't worked out in detail) is to add either a new content
manager that extends raw_data_manager, or just add to raw_data_manager, a
handler for 'multipart/related'. The set handler would handle a value of type
'dict', and expect it to
Sebastian Kreft added the comment:
I agree that blocking is not ideal, however there are already some other
methods that can eventually block forever, and for such cases a timeout is
provided. A similar approach could be used here.
I think this method should retry until it can actually access
New submission from Sebastian Kreft:
Although it is already explained that the default mode of the opened tempfiles
is 'w+b' a warning/notice section should be included to make it clearer.
I think this is important as the default for the open function is to return
strings and not bytes.
I
New submission from Linlin Yan:
I noticed this problem when I run a Python2 program (MACS:
http://liulab.dfci.harvard.edu/MACS/) very inefficiently on a large storage on
a high performace server (64-bit Linux). It was much slower (more than two
days) than running it on a normal PC (less than
New submission from Claudiu.Popa:
Given the following code, tracemalloc crashes with:
Floating point exception: 8 (core dumped)
import tracemalloc
tracemalloc.start(10)
import io
io.StringIO()
The culprit is this line assert(nelem = PY_SIZE_MAX / elsize); from
tracemalloc_alloc. elsize is 0
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
Added file: http://bugs.python.org/file35452/python_3.1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21640
___
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
Added file: http://bugs.python.org/file35455/python_3.3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21640
___
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
Added file: http://bugs.python.org/file35454/python_3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21640
___
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
Added file: http://bugs.python.org/file35456/python_3.4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21640
___
Roundup Robot added the comment:
New changeset 5ab8ec8b5b5b by Serhiy Storchaka in branch '2.7':
Issue #6181: Fixed errors in tkinter.Listbox docstrings.
http://hg.python.org/cpython/rev/5ab8ec8b5b5b
New changeset 932532360578 by Serhiy Storchaka in branch '3.4':
Issue #6181: Fixed errors in
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
Added file: http://bugs.python.org/file35453/python_3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21640
___
Changes by Auke Willem Oosterhoff awoosterh...@gmail.com:
--
assignee: docs@python
components: Documentation
files: python_2.7.patch
keywords: patch
nosy: OrangeTux, docs@python
priority: normal
severity: normal
status: open
title: References to other Python version in sidebar of
New submission from Auke Willem Oosterhoff:
Most version of the documentation are labeling Python 3.4 as 'in development'
and missing reference to Python 3.5.
--
Added file: http://bugs.python.org/file35457/python_3.5.patch
___
Python tracker
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35458/test-autoexpand1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18292
___
R. David Murray added the comment:
Your second bullet item would seem to me to be the obvious interpretation of
the docs. This is, after all, Python, so 'integer' would refer to Python
integers and their operations. So I agree with Stefan that the docs are
correct as they stand. As he also
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +giampaolo.rodola, gvanrossum, pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21594
___
Saimadhav Heblikar added the comment:
From Ned Deily's message.
haven't tried it recently on a Linux system
Output from a linux syste:
./python -m test -ugui test_ttk_guionly test_ttk_guionly test_idle test_idle
[1/4] test_ttk_guionly
[2/4] test_ttk_guionly
[3/4] test_idle
[4/4] test_idle
All
Claudiu.Popa added the comment:
An alternative to this approach would be to catch the error in __init__ and
close the socket there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21641
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at:
--
nosy: +haubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10656
___
___
New submission from Claudiu.Popa:
Hello!
I noticed that test_smtplib raises a ResourceWarning, tracking this to this
piece of code:
self.assertRaises(smtplib.SMTPResponseException, smtplib.SMTP,
HOST, self.port, 'localhost', 3)
What happens is that `SMTP.getreply` is
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at:
--
nosy: +haubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16189
___
___
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at:
--
nosy: +haubi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13493
___
___
Michael Haubenwallner added the comment:
Doing it this way strictly requires runtime-linking to be enabled, to have the
main executable and the module use the same runtime instance of the
libpython${VERSION}.so symbols.
Instead, the main executable better should re-export the python symbols
eryksun added the comment:
You can use '-P?e(END) .(q to quit)' to add (END) just on the last line. Or
show the line count instead:
os.environ['LESS'] = '-Pline %lB?L/%L. (press h for help or q to quit)'
--
___
Python tracker
R. David Murray added the comment:
There is also an option to make less quit if enter is pressed on the last line
(-e/--quit-at-eof).
These more beginner friendly options could be provided by pydoc if there is no
existing PAGER or LESS environment variable.
--
nosy: +r.david.murray
Robert w added the comment:
banner
C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0C:\Python33\python
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit
(AMD64)] on win32
Type help, copyright, credits or license for more information.
Changes by Robert w robert...@googlemail.com:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21631
___
___
Ethan Furman added the comment:
I think something like the following, taken from
http://bugs.python.org/issue19030#msg199920, shoud do the trick for something
to test against:
class Meta(type):
def __getattr__(self, name):
if name == 'ham':
return
Jim Jewett added the comment:
I'm still not seeing why these changes are sufficiently desirable to justify
the code churn. Nor am I seeing test or doc changes that would explain the
advantages of the new way, and prevent future regressions.
I agree that the changes would make the signatures
R. David Murray added the comment:
You may not be a noob, but on the other hand we can't see the bug. So your
best bet would be to post your code to the python-list mailing list and ask for
help refining your bug report into something we can take action on.
--
Zachary Ware added the comment:
As for what's actually wrong here, Hirokazu Yamamoto's diagnosis in msg123615
(adjusted for 2.7) is correct.
Either of the last two patches I posted should work to fix this issue, but
they're both just band-aids rather than a real, once-and-for-all fix. #20035
Guido van Rossum added the comment:
I'm not sure. Running out of file descriptors is really not something a
library can handle on its own -- this needs to be kicked back to the app to
handle. E.g. by pacing itself, or closing some connections, or changing the
system limit... The library really
Robert w added the comment:
i cutted it down
=
class EnumSectionContentType(object):
DATABYTE = 2
DATADOUBLEWORD = 3
DATAWORD = 4
#LABEL = 0
def _getStringOfElements(elements):
objectFileString =
elements = [{'type': 2, 'data': {'elements': ['83H', '0FAH', '9AH',
Zachary Ware added the comment:
The first error makes no sense to me. What version of OpenSSL are you
building? How did you invoke the Python build (command line, or through the VS
GUI)?
As for the second error, all of the VS-generated files in PCbuild have a UTF-8
BOM, which is what the
Roundup Robot added the comment:
New changeset 1d36bd258ee8 by Zachary Ware in branch '3.4':
Issue #21623: open pyproject.props with an explicit encoding
http://hg.python.org/cpython/rev/1d36bd258ee8
--
nosy: +python-dev
___
Python tracker
R. David Murray added the comment:
I get an exception. I think you need to be more careful with your testing.
Please take this to python-list for further help.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21631
R. David Murray added the comment:
I suspect this is either related to or is a duplicate of issue 1823.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21567
___
Zachary Ware added the comment:
The cause of the second error should be fixed now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21623
___
___
Terry J. Reedy added the comment:
I reconsidered this in the light of #21559. getargs_b requires an integer of
type int in range(256). A non-int properly raises TypeError.
from _testcapi import getargs_b as gb
gb(1.0)
Traceback (most recent call last):
File pyshell#7, line 1, in module
R. David Murray added the comment:
A side note about tests: once a couple or three years ago I made it so that you
could run 'make doctest' against the turtle documentation and it would work
(displaying stuff on the screen). There's no checking of the output, but it
proved the examples at
Terry J. Reedy added the comment:
I was tempted to close this, but I think there is an issue that 'theme' has
implied but not stated clearly enough. The OverflowError entry might be
re-written as Raised when the result of an arithmetic operation involving at
least one non-int is too large to
Steve Dower added the comment:
Has the first log been abbreviated at all? It looks like it's trying to build
the tests before building the library...
(Nosied Martin, since he's managed to build this version of OpenSSL with VC10
and may have encountered this. I've only dealt with VC9 so far.)
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, zach.ware
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21533
___
Zachary Ware added the comment:
I will note that VC++ 2010 Express is what I use on one of my usual machines,
and don't recall ever having this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21623
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9196
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21547
___
New submission from Joshua Landau:
By the docs,
Except at the beginning of a logical line or in
string literals, the whitespace characters space,
tab and formfeed can be used interchangeably to
separate tokens. Whitespace is needed between two
tokens only if their
R. David Murray added the comment:
Integers are outside a required range makes me wonder why it isn't a
ValueError. An OverflowError should be the result of a *computation*, IMO, not
a bounds check.
So, maybe add your sentence with the additional phrase for historical
reasons? :)
Josiah Carlson added the comment:
First, with the use of Overlapped IO on Windows, BlockingIOError should never
come up, and we don't even handle that exception.
As for BrokenPipeError vs. EOF; while we do treat them more or less the same,
we aren't killing the process or reporting that the
New submission from Virgil Dupras:
There seems to have been a regression in Python 3.4.1 with pyvenv --upgrade,
and this regression seems to be caused by #21197.
It now seems impossible to use the --upgrade flag without getting a File
exists error. Steps to reproduce:
$ pyvenv env
$ pyvenv
Zachary Ware added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21533
___
___
Python-bugs-list mailing list
Unsubscribe:
Roundup Robot added the comment:
New changeset 8cd7eb00894e by Serhiy Storchaka in branch '2.7':
Issue #6181: Fixed minor bugs in tkinter.Listbox methods:
http://hg.python.org/cpython/rev/8cd7eb00894e
New changeset 54a2ceacac05 by Serhiy Storchaka in branch '3.4':
Issue #6181: Fixed minor bugs
Daniel Holth added the comment:
As an aside, why wouldn't I run my program with -bb?
One reason is that the following code won't work on Linux:
#!/usr/bin/env python -bb
Instead of passing -bb to Python, it will look for an executable called python
-bb, and it's not likely to find it.
The
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21643
___
___
Python-bugs-list mailing
Terry J. Reedy added the comment:
1. In activate, change parameter 'index' to 'element'. I agree with Jim about
rejecting this. A (specific). 'index' is routinely used to point to an item in
a sequence; arrow1, slider, and arrow2 are visually sequenced. The doc
string is clear on the
1 - 100 of 151 matches
Mail list logo