[issue11457] Expose nanosecond precision from system calls

2011-06-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sun, Jun 26, 2011 at 8:23 AM, Martin v. Löwis wrote: .. >> I understand that it is an issue of the datetime module. Can it be >> solved, or is there a design issue in the module? > > It's an inherent flaw of broken-down time. Don't use that > represent

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Alex Gaynor
Alex Gaynor added the comment: Amaury points out: this is not strictly about immutable objects, but rather objects who's deepcopy is themselves (identity-wise), in some (rare I think) cases this could provide a slowdown. Specifically a case of [(1, 2, 3)] * 1 would be slower, because it

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Pauli Virtanen
Pauli Virtanen added the comment: Lenard Lindstrom writes: > Using Python reference counting and the garbage collector to control > when PyBuffer_Release is called has problems. That's not what's being suggested. The refcounting discussed here is an implementation detail internal to memoryvie

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-27 Thread Ben Ranker
Ben Ranker added the comment: Sorry for any confusion caused by my imprecise use of the word "explodes." -- ___ Python tracker ___ __

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: It would if the proposed PyManagedBuffer only releases the Py_buffer struct - calls PyBuffer_Release - when its Python reference count goes to zero. So a separate reference count will be maintained instead. -- __

[issue1475523] gettext breaks on plural-forms header

2011-06-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok. This is a different issue, then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12422] When deepcopying, don't store immutable objects in the memo dict

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset e24ad85e9608 by Benjamin Peterson in branch 'default': don't memoize objects that are their own copies (closes #12422) http://hg.python.org/cpython/rev/e24ad85e9608 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected st

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Extract of abort manual page: "The abort() first unblocks the SIGABRT signal, and then raises that signal for the calling process. This results in the abnormal termination of the process unless the SIGABRT signal is caught and the signal handler does not

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: heap_gc_deadlock_lockless.diff: _free_pending_blocks() and free() execute the following instructions in a different order, is it a problem? +self._free(block) +self._allocated_blocks.remove(block) vs +self._allocated_b

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: > You may document that _pending_free_blocks.append() > and _pending_free_blocks.pop() are atomic in CPython > and don't need a specific lock. Oops, i skipped complelty your long comment explaining everything! It is enough. --

[issue11302] Add more tests to test_ast.py

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3143cadb2f2d by Benjamin Peterson in branch '2.7': add more ast tests (closes #11302) http://hg.python.org/cpython/rev/3143cadb2f2d New changeset e8d47cbe9b6f by Benjamin Peterson in branch '3.2': add more ast tests (closes #11302) http://hg.python

[issue12352] multiprocessing.Value() hangs

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: There are different technics to workaround this issue. My preferred is heap_gc_deadlock_lockless.diff because it has less border effect and have a well defined behaviour. -- ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread Nicholas Cole
Nicholas Cole added the comment: Is there any hope that something like this patch will make it into a future version? As far as I can see, entering accented characters is currently impossible on the latest release versions of python...or am I missing something? -- nosy: +Nicholas.Col

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: You someone update the patch for Python 3.3? Python 2.7 and 3.2 don't accept new features. -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Can someone update the patch for Python 3.3? Python 2.7 and 3.2 don't accept new features. -- ___ Python tracker ___ __

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg139334 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: New patch updated according to bitdancer's comment on IRC: only change the -W option. With the patch, -W only runs the test once but captures the output. The main difference with my patch is that all output is written to stderr, even if the captured output wa

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: Your patch is linux3 compliant, go ahead! -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2011-06-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12345] Add math.tau

2011-06-27 Thread Guido van Rossum
Guido van Rossum added the comment: Uh, not until I've seen a lot more evidence that people are habitually writing "TAU = 2 * math.pi" in their programs... -- nosy: +gvanrossum ___ Python tracker

[issue12424] distutils2: extension section uses bad environment marker separator

2011-06-27 Thread Eli Collins
New submission from Eli Collins : The _pop_values() function in packaging.config uses "--" as the environment marker separator when parsing extension sections. This doesn't match PEP 345, or how the metadata section is currently parsed, both of which use ";" instead. Also, "--" is frequently f

[issue12424] distutils2: extension section uses bad environment marker separator

2011-06-27 Thread Eli Collins
Changes by Eli Collins : -- keywords: +patch Added file: http://bugs.python.org/file22503/cpython_issue12424.patch ___ Python tracker ___

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-27 Thread STINNER Victor
STINNER Victor added the comment: > test_sigwaitinfo_interrupted() fails because SIGALRM > signal handler is called ... Oh, the problem is that sigwait() behaviour changes after a fork: it is interrupted if an unexpected signal is received, but the signal handler is not called. It behaves cor

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-06-27 Thread Nick Coghlan
Nick Coghlan added the comment: memoryview.release() will raise an exception if you call it when the underlying PyManagedBuffer instance has a refcount > 1. So the explicit memory management still works, and if you mess it up by leaving dangling references around you'll run the risk of gettin

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Changes by Henry Precheur : Removed file: http://bugs.python.org/file22501/fix_distutils_test.diff ___ Python tracker ___ ___ Python-bugs-list

[issue12420] distutils tests fail if PATH is not defined

2011-06-27 Thread Henry Precheur
Henry Precheur added the comment: I've fixed the last failing tests, but I'm unsure it's the right way to do it. Take a look at the part for Lib/distutils/tests/test_build_ext.py. I just check that os.environ['PATH'] is defined. I'm not 100% certain that this will work on every platforms. --

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-06-27 Thread Paulo Scardine
Paulo Scardine added the comment: Is there anything I should improve in order to get this patch commited? -- resolution: -> remind ___ Python tracker ___ __

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a0b929b5c3d by Ned Deily in branch '2.7': Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 http://hg.python.org/cpython/rev/4a0b929b5c3d New changeset 570cdef34066 by Ned Deily in branch '3.2': Issue #10736: Fix test_ttk test_w

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-27 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python tracker ___ ___ Pytho

<    1   2