[issue17807] Generator cleanup without tp_del

2013-04-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file29960/gen2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17807 ___

[issue3693] Obscure array.array error message

2013-04-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - commit review versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3693 ___

[issue17742] Add _PyBytesWriter API

2013-04-20 Thread STINNER Victor
STINNER Victor added the comment: I'm not completly satisfied of bytes_writer-2.patch. Most encoders work directly on a pointer (char*). If I want to keep the code using pointers (because it is efficient), I have to resynchronize the writer and the pointer before and after calling writer

[issue17717] Set up nasm from external.bat

2013-04-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +terry.reedy, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17717 ___ ___

[issue17736] Misleading method comment in _elementtree.c : get_attrib_from_keywords

2013-04-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eli.bendersky stage: - patch review versions: -Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17736 ___

[issue17807] Generator cleanup without tp_del

2013-04-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch with added tests. -- Added file: http://bugs.python.org/file29962/gen3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17807 ___

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
New submission from Andriy Mysyk: Documentation for Event objects in threading module could be more clear with a code example. http://docs.python.org/3.4/library/threading.html#event-objects -- messages: 187486 nosy: amysyk priority: normal severity: normal status: open title: No code

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: I will create a code example by the end of Sunday, April 21. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17808 ___

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: See the patch with a code example attached. -- assignee: - docs@python components: +Documentation keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file29963/bug17808.patch ___ Python tracker

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: Example added to threading.rst For example, the following code demonstrates a controlled thread termination using an event object. The event is used to request the termination of several threads. import threading import time stopevent = threading.Event()

[issue17717] Set up nasm from external.bat

2013-04-20 Thread Zachary Ware
Zachary Ware added the comment: Could you elaborate on what you mean to be done? All I've ever had to do was run the nasm installer and add the install location to PATH. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17717

[issue17807] Generator cleanup without tp_del

2013-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: Just a couple of minor comments on review. Everything else I looked for (including the path where a generator failing to stop during frame deallocation leads to reporting an unraisable exception) seemed fine. One aspect I find interesting is that we've had

[issue17800] Add gc.needs_finalizing() to check if an object needs finalising

2013-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: Antoine came up with a scheme (see issue 17807) that should eliminate the tp_del implementation from generator objects by moving the cleanup code to the frame deallocation. This will restore Guido's original assumption that types implemented in C won't need to

[issue17800] Add gc.needs_finalizing() to check if an object needs finalising

2013-04-20 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex, fijall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17800 ___ ___ Python-bugs-list

[issue17809] FAIL: test_expanduser when $HOME ends with /

2013-04-20 Thread koobs
New submission from koobs: test_expanduser in test.test_posixpath.PosixPathTest fails when the users $HOME ends with / == FAIL: test_expanduser (test.test_posixpath.PosixPathTest)

<    1   2