[issue11073] threading.Thread documentation can be improved

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I still don't understand. I haven't used threading much, but I don't believe I've ever used a static method with it. -- ___ Python tracker rep...@bugs.python.org

[issue11076] Iterable argparse Namespace

2011-01-31 Thread Virgil Dupras
New submission from Virgil Dupras hs...@hardcoded.net: Currently, there is no (documented) way to easily extract arguments in an argparse Namespace as a dictionary. This way, it would me easy to interface a function taking a lot of kwargs like this: args = parser.parse_args()

[issue11073] threading.Thread documentation can be improved

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Roy, it's not clear what you're after. What is it that you think is special about the way the target is called? -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue11061] Verify command option before parsing config file

2011-01-31 Thread Sebastien Douche
Sebastien Douche sdou...@gmail.com added the comment: Oups sorry Eric. I created the report very quickly after a discussion with Tarek. If you type a wrong command like python -m distutils2:run wrong, disutils2 still parses the setup.cfg. How resolve this? Don't know, maybe a migration to

[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Since IDLE and the turtle modules both use Tkinter and thus are both Tcl/Tk applications, it wouldn't be surprising if you had problems trying to run a program using the IDLE module from within IDLE. However, I find I can successfully run at least

[issue11075] Turtle crash with IDLE on Mac OS X 10.6

2011-01-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: er, trying to run a program using the turtle module from within IDLE -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11075 ___

[issue11071] What's New review comments

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Do yourself a favor and don't become a PEP 8 nut ;-) The primary purpose of the example in whatsnew is to teach, demonstrate, and explain. Any PEP 8 considerations take a back seat to that purpose (even PEP 8 itself

[issue11076] Iterable argparse Namespace

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 for making the object readily convertible to a dictionary. That would also serve to make it more introspectable without losing the simplicity of the current design. -- nosy: +rhettinger

[issue10891] Tweak sorting howto to eliminate redundancy

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: You can put in the backslashes before the two periods, but not the other changes. I want the method names to continue to be spelled-out in full so that it is more clear what they are referring to. Even in spoken English, I

[issue11071] What's New review comments

2011-01-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I agree with Raymond: whoever puts in 95% of work for a single document should have artistic license over the style. I also don't complain if people use a different indentation style in module docs they write (but I reserve the right to use

[issue3080] Full unicode import system

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: As explained in issue #10828: Python 3.2 doesn't support non-ASCII module names on Windows because module names are encoded to UTF-8 instead of the filesystem encoding (the ANSI code page). --

[issue11016] Add S_ISDOOR to the stat module

2011-01-31 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Martin, I guess stat deprecation could require a few years and it would be an extra incompatibility burden between 2.7 and 3.x. Beside the symbolic constants, why would you see stat deprecated?. --

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: r81947 introduced this issue: from struct import * pack_into Traceback (most recent call last): File pyshell#1, line 1, in module pack_into NameError: name 'pack_into' is not defined struct.__all__ has a duplicate entry and misses

[issue11071] What's New review comments

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python’s import mechanism can now load modules installed in directories with non-ASCII characters in the path name: import møøse.bites møøse is not a module *path*, but a module *name*... This example doesn't work on Windows: see

[issue11071] What's New review comments

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Should we add imports in all examples? Eg. add import math in: repr(math.pi) '3.141592653589793' str(math.pi) '3.141592653589793' At least, accumulate should be replaced by itertools.accumulate in the following example:

[issue11071] What's New review comments

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The import in the following example is wrong : import datetime datetime.now(timezone.utc) ... It should be replaced by: from datetime import datetime, timezone. -- ___ Python tracker

[issue11073] threading.Thread documentation can be improved

2011-01-31 Thread Roy Smith
Roy Smith r...@panix.com added the comment: Here's the code I ended up writing: class Foo(): def __init__(self): self.thread = Thread(target=Foo.runner, args=[self]) self.thread.start() @staticmethod def runner(self): # blah, blah, blah It was not immediately

[issue11071] What's New review comments

2011-01-31 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Nick, thanks for highlighting the logging changes. In addition to what you mentioned, there's still more, at least some of which deserves to get into what's new :-) 1. QueueHandler and QueueListener classes were added to help with logging

[issue11071] What's New review comments

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ABCMeta should be replaced by abc.ABCMeta, or other abc. prefixes should be removed. class Temperature(metaclass=ABCMeta): @abc.abstractclassmethod def from_fahrenheit(self, t): ... @abc.abstractclassmethod

[issue11073] threading.Thread documentation can be improved

2011-01-31 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: It was not immediately clear from the documentation if my runner() method should be declared static or not. The doc doesn't mention static methods at all, and my uses and others that I've seen have never used static methods. -- nosy:

[issue11073] threading.Thread documentation can be improved

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You don't have to use any staticmethod here (actually, staticmethod is an anti-pattern in Python). Just write: class Foo(): def __init__(self): self.thread = Thread(target=self.runner) self.thread.start() def runner(self):

[issue11071] What's New review comments

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks Victor. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11071 ___

[issue11071] What's New review comments

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Please consider mentioning that several modules can now be called with -m: pickle, pickletools and tkinter. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org

[issue11077] Tkinter is not thread safe. This is a bug.

2011-01-31 Thread Scott M
New submission from Scott M scott.m...@comcast.net: The more I look at GUI support in Python, the more I realize that the lack of basic thread safety in GUI support is simply a bug. I know Java's Swing has the same thread limitation, but that doesn't make it right. Xlib is thread safe. The

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-31 Thread stan mihai
stan mihai stanmih...@gmail.com added the comment: attached patch with tests I have no experience with python development so the tests will actually need a more detailed review. Also I only checked it on win64. -- Added file: http://bugs.python.org/file20626/ctypes_win64_tests.diff

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The proposed patch looks fine to me, but it is attached to the wrong issue. It belongs to #8973 or better yet to follow RC2 rules pedantically, it should be posted in a separate issue. This is important, because this

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Wait, #8973 *is* this issue. But r81947 is clearly not about docstrings. We definitely need a saparate issue. This is too confusing. -- ___ Python tracker

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: Inspired by what happened in issue 8973, I offer the attached patch for test__all__ to have it check the __all__ list for duplicates. Interestingly, the first failure is not in struct, but in os. Obviously the patch can't be applied

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- Removed message: http://bugs.python.org/msg127607 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8973 ___

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Wait, #8973 *is* this issue. But r81947 is clearly not only about docstrings. We definitely need a separate issue. This is too confusing. -- ___ Python tracker

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread Jérôme Radix
Changes by Jérôme Radix jerome.ra...@gmail.com: -- nosy: +Jérôme Radix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792 ___ ___ Python-bugs-list

[issue1252236] Simplying Tkinter's event loop

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +PythonInTheGrass -BreamoreBoy resolution: wont fix - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1252236

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- title: Tkinter is not thread safe. This is a bug. - Tkinter is not thread safe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11077 ___

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch verified to work under Linux and win32. It looks good, except for tab characters in the Modules/_ctypes/_ctypes_test.c (indentation of C files should use 4 spaces); that's a detail that we can fix ourselves. -- assignee: theller -

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: One possible solution was presented in issue1252236: move tkinter event loop into Python main loop. However, to consider this report a bug, we need an example code that shows the behavior that you consider incorrect.

[issue11079] Make OS X entry in Applications like that in Windows

2011-01-31 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: In Applications, the 3.2 entry includes: * Python Launcher * IDLE * Update Shell.Profile Command * Extras directory The latter should be dropped (most of the tools only make sense from the command-line) and should be

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: +1. This is a fairly common mistake. Usually benign, but as issue 8973 shows, may highlight a visible error. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2011-01-31 Thread Tres Seaver
Tres Seaver tsea...@agendaless.com added the comment: georg.brandl (2010-12-03 10:20): Don't worry, it will be ported. When? Why would it *not* be merged to the 2.7 and 3.1 branches at the time the bug is closed? Delaying the port only increases the chance that the fix will fall between the

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Let's reopen until then. -- assignee: pitrou - resolution: fixed - accepted stage: - committed/rejected status: closed - open versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue11023] pep 227 missing text

2011-01-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The “Documentation” component is used for bugs found in files under the Doc directory of a CPython checkout or source tarball. PEPs are tracked in their own repository and are not part of the CPython distribution. They are not part of the

[issue11061] Verify command option before parsing config file

2011-01-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Well, the setup.cfg could register a command named “wrong”, so d2 really has to parse all config files before rejecting a command. -- ___ Python tracker rep...@bugs.python.org

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread Jérôme Radix
Jérôme Radix jerome.ra...@gmail.com added the comment: Could you please change the priority of this Issue to 'High' as this problem is a big annoyance for all Windows 64bits users which is a rather large niche of users (a niche getting larger and larger everyday), don't you think ? --

[issue11080] Win32Serial.read coding error for non-blocking read

2011-01-31 Thread Terry M. Topka
New submission from Terry M. Topka to...@ge.com: Attempting to read a fixed amount of data when the serial port is configured for non-blocking reads (i.e. self.timeout == 0) will occasionally throw an invalid memory access exception, due to an error in the following code: ### pyserial-2.5-rc2

[issue11080] Win32Serial.read coding error for non-blocking read

2011-01-31 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: You should contact pyserial. -- nosy: +brian.curtin resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11080

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: At the moment test fails only for os module on windows. These are the offending names: putenv, spawnv, spawnve The reason is that __all__ is extended with ntpath.__all__ and then again in the body of os.py (I'm not entirely sure how this

[issue8998] add crypto routines to stdlib

2011-01-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, the test stops testing after the first failure. Perhaps another enhancement request would be to make test__all__ a parameterized test so that it tests all modules even if one or more fail. On linux, the dups are putenv and

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 31, 2011 at 12:09 PM, R. David Murray rep...@bugs.python.org wrote: .. On linux, the dups are putenv and unsetenv.  And yes, deeper investigation of why os.py is adding them is required to fix this :) Too

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, checking if the token is there before adding it would certainly be a fix, but I think it would be worth understanding why it gets added if it is already there, because instead perhaps it is possible to simply remove the adding code

[issue11081] from struct import * misses pack_into

2011-01-31 Thread SilentGhost
New submission from SilentGhost ghost@gmail.com: the following issue was introduced in r81947: from struct import * pack_into Traceback (most recent call last): File pyshell#1, line 1, in module pack_into NameError: name 'pack_into' is not defined struct.__all__ has a duplicate

[issue8973] Inconsistent docstrings in struct module

2011-01-31 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: new issue #11081 was created for struct.__all__ fix -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8973 ___

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'll leave priority setting to tarek, but it doesn't look to me like raising the priority is going to make any difference, since it doesn't sound from reading the ticket like anyone has found a solution yet (other than offering 64bit

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I would say if anything can go in after rc2 at all, this should be accepted. George? I ran a few sanity checks with the patch applied: set(struct.__all__) - set(dir(struct)) set() set(dir(struct)) -

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: FYI, a python traceback is not a segfault. Nor is it a 'crash' in the sense we use in this tracker. The warning has been added to the download page, though there is discussion about whether or not it should be more prominent.

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2011-01-31 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Yeah I agree. Until we get a solution + patch the priority here does not really matter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6792

[issue11078] Have test___all__ check for duplicates

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- dependencies: +from struct import * misses pack_into ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11078 ___

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11081 ___

[issue11068] Python 2.7.1 Idle traceback on OS X (10.6.6)

2011-01-31 Thread David Meier
David Meier djme...@gmail.com added the comment: Sorry that what I had pasted in does not show a segfault, however if you run it as `idle` (i.e. no `(idle)) the command line reports a generic Segmentation fault with no traceback. So, yes, it is a segmentation fault - but I figured it was

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file16584/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8176 ___

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file16615/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8176 ___

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It looks like the bug cannot be reproduced anymore. Since it was discovered using a python instance with third-party extension modules, it may not even be a python bug to begin with. -- assignee: - belopolsky

[issue7358] cPickle crash on failed assertion

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Ryan, Do you still have the setup that can reproduce this error? If so, can you try running it with pickle rather than cPickle? If it works with pickle, please see if you can reproduce the error by unpickling the

[issue9197] Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize

2011-01-31 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17899/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9197 ___

[issue7358] cPickle crash on failed assertion

2011-01-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7358 ___ ___

[issue9197] Crash when importing an extension after Py_Initialize, Py_Finalize and Py_Initialize

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Amaury, Can you post your Linux code reproducing the issue? I would like to take a look, but don't want to dig through an XCode project. -- assignee: - belopolsky nosy: +belopolsky title: Crash when importer an

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If you are still able to reproduce the bug, you may try the following module to get a backtrace: https://github.com/haypo/faulthandler/ -- status: pending - open ___ Python tracker

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Victor, I was thinking about pointing the OP to your faulthandler module, but decided not to because in the failing thread python has already finished execution and most of finalization. It is very unlikely that

[issue7358] cStringIO not 64-bit safe

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The issue looks quite clear: cStringIO.write() asserts that the required storage size is less than INT_MAX. Therefore, in all likelihood, the pickle dump is simply larger than 2GB. Now, the cStringIO structures seem 64-bit safe, so the

[issue11077] Tkinter is not thread safe (and that's... bad)

2011-01-31 Thread Scott M
Scott M scott.m...@comcast.net added the comment: I don't have an opinion on 1252236. I'm not certain it would help. I have an extension that runs a bunch of (alien) threads into Python code. The threads deliver information for all sorts of real world events, asynchronously. Multiple threads

[issue8176] Interpreter crash with double free or corruption message

2011-01-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I wouldn't be surprised if the crash was related to some concurrency issues during shutdown. Other (Python or not Python) threads can continue running while the main thread is running Py_Finalize; this might be the reason; or perhaps some

[issue11023] pep 227 missing text

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Eric, what you say is technically true, but we don't have any other place to track PEP bugs. -- assignee: - docs@python components: +Documentation nosy: +docs@python, r.david.murray resolution: invalid - stage:

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- title: Tkinter is not thread safe (and that's... bad) - Tkinter is not thread safe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11077 ___

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Yes, this can go in. -- assignee: georg.brandl - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11081 ___

[issue9197] Crash when importing an extension after Py_Initialize, Py_Finalize and Py_Initialize

2011-01-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here are the files I used to reproduce the crash. See build.sh for the build command, there may be better ways... -- Added file: http://bugs.python.org/file20631/simpletest.zip ___ Python

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2011-01-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Because I don't think porting every change immediately is worth my time when I can do it much faster in mass-merges. I know other developers do this differently, but since I use svnmerge to do my mass-merges, there won't be any falling through

[issue571767] string.capitlize() documentation

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I see correct doc strings on both 2.7 head and 3.1. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue571767 ___

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Hmm, either my hand is too slow or my laptop is too fast, but I cannot reproduce the crash. Can you create a non-interactive script? Maybe start a separate thread generating launch events? What do you mean by crash? Do

[issue2504] Add gettext.pgettext() and variants support

2011-01-31 Thread Étienne BERSAC
Changes by Étienne BERSAC bersac...@gmail.com: -- nosy: -Felix Schwarz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___ ___

[issue2504] Add gettext.pgettext() and variants support

2011-01-31 Thread Étienne BERSAC
Changes by Étienne BERSAC bersac...@gmail.com: -- nosy: +bersace ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___ ___ Python-bugs-list

[issue2504] Add gettext.pgettext() and variants support

2011-01-31 Thread Étienne BERSAC
Changes by Étienne BERSAC bersac...@gmail.com: -- nosy: +Felix Schwarz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___ ___ Python-bugs-list

[issue11082] ValueError: Content-Length should be specified

2011-01-31 Thread William Wu
New submission from William Wu willie...@gmail.com: I found this bug when I started to trying Python 3.2 release candidate 1. When using urllib.request.urlopen to handle HTTP POST, I got the error message: ValueError: Content-Length should be specified for iterable data of type class

[issue11083] threading.Thread - start() rises RuntimeException?

2011-01-31 Thread Federico Culloca
New submission from Federico Culloca djthrot...@gmail.com: In the threading module documentation, about the start() method of the threading.Thread class, it says that, upon calling start() more then once, a RuntimeException is raised. I couldn't find in the whole documentation other

[issue11077] Tkinter is not thread safe

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I converted TkinterCrash2.py to 3.x using 2to3 (result attached as TkinterCrash3.py) and it works with 3.2rc2 just fine. -- Added file: http://bugs.python.org/file20632/TkinterCrash3.py

[issue11081] from struct import * misses pack_into

2011-01-31 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in revision 88280. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11082] ValueError: Content-Length should be specified

2011-01-31 Thread William Wu
Changes by William Wu willie...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file20633/test_urllib_request.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082 ___

[issue11082] ValueError: Content-Length should be specified

2011-01-31 Thread William Wu
Changes by William Wu willie...@gmail.com: Added file: http://bugs.python.org/file20634/urllib_request.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11082 ___

[issue11083] threading.Thread - start() rises RuntimeException?

2011-01-31 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Thanks, fixed in r88281. Back porting to the other branches as well. -- nosy: +brian.curtin resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.1, Python 3.2 ___

[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread GDR!
New submission from GDR! g...@go2.pl: xmlrpc.client (and xmlrpclib in 2.x) can't serialize instances of Decimal, throwing TypeError instead. Because XML is a textual format, converting from decimal to float may cause loss of data. According to http://www.xmlrpc.com/spec, encoding Decimal as

[issue11074] fix tokenize so it can be reloaded

2011-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: georg.brandl - brett.cannon versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11074 ___

[issue11085] expose _abcoll as collections.abc

2011-01-31 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: For the 3.3, make _abcoll (which is full of the collections abstract base classes) visible as a module called collections.abc and document that as the preferred way to access them. For backwards compatibility, continue to

[issue10992] tests failing when run under coverage

2011-01-31 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10992 ___ ___

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-31 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Once Python 3.3 is open I will apply the cgi fix. Just to double-check, can I close this issue once the test_cgi patch goes in? -- assignee: georg.brandl - brett.cannon ___ Python tracker

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2011-01-31 Thread Matt Cain
Matt Cain cainm...@gmail.com added the comment: I re-wrote encode() to be simpler and faster. My version runs about 10 times faster on a 30KB message. I have tested it somewhat but not rigorously see attached patch -- keywords: +patch nosy: +cainmatt Added file:

[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: -1 on an implicit, lossy conversion. The principal reasons for using decimal in the first place is avoid representation error. For example, when money is being represented as a decimal, it is improper to convert it to

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2011-01-31 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray nosy: +r.david.murray stage: needs patch - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5803

[issue11085] expose _abcoll as collections.abc

2011-01-31 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Why not just put them in the 'abc' namespace? IMO, collections.abc.Callable makes a lot less sense than abc.Mapping. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-31 Thread stan mihai
stan mihai stanmih...@gmail.com added the comment: ok, please also fix the first parameter of the tests. Because it has the same value in the first call and the callback it will always be right by accident, since the first call puts the value in both standard and floating point registers.

[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2011-01-31 Thread O.C.
O.C. oc-spa...@laposte.net added the comment: Hello, I read the proposed patch event_generate__data2.diff and the Tcl/Tk manual http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M24 * Could you please also add a field e.user_data ? This would simply be a copy of 'd' : --- e.detail = d e.user_data

[issue11086] add lib2to3/__main__.py

2011-01-31 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: There is no reason why the 2to3 script can't be gutted and turned into just a stub that uses runpy to call lib2to3.__main__. Also has the nice benefit that one can use ``-m lib2to3`` instead of having to use the 2to3 script. --

[issue11084] Serialization of decimal.Decimal to XML-RPC

2011-01-31 Thread GDR!
GDR! g...@go2.pl added the comment: I didn't mean to implicitly convert Decimal to float. My point was that xmlrpclib should serialize Decimals natively to avoid loss of precision when converting to float and then to string. Whether other party will be able to represent this number exactly or

  1   2   >