[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fixed in trunk r65151 (in theory). I don't have amd64 to test with. Roger, would you please test an AMD64 build from that revision or later to confirm that it is fixed? Once confirmed, this should be backported to release25-maint. --

[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10950/windows-amd64-subprocess-handle-gps01.diff ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10951/windows-amd64-subprocess-handle-gps02.diff ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2620] Multiple buffer overflows in unicode processing

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: diff up for review on http://codereview.appspot.com/2599 ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3419] multiprocessing module is racy

2008-07-19 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: This also happens under trunk -- versions: +Python 2.6 ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: I just committed a fix to trunk in r65147, needs port to py3k? -- assignee: bob.ippolito -> georg.brandl ___ Python tracker <[EMAIL PROTECTED]>

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: I've audited the patch, while it does fix the input range it looks like it regresses other things (at least the error messages). "begin" was intentionally used. The patch is not suitable for use, I'll create a minimal patch that just fixes input

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito
Bob Ippolito <[EMAIL PROTECTED]> added the comment: Am I to understand that the bug here is that the C extension doesn't validate input properly if you call into it directly? Without a test I'm not entirely sure exactly how you could possibly get negative values into those functions using the jso

[issue3419] multiprocessing module is racy

2008-07-19 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: When running test_multiprocessing in a loop, I see: test test_multiprocessing failed -- Traceback (most recent call last): File "/temp/python/trunk/Lib/test/test_multiprocessing.py", line 1157, in test_remote queue = manager2.get_que

[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: i believe this patch will fix it. but i don't have a windows build environment setup yet to even try it. Exposing pointers to data structures as a number to Python is very gross to begin with. It'd be safer to define a tiny type to wrap t

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: Okay, now i've run the correct test suite on the correct modules with pybsddb r530: The problems still happen. Sometimes it passes. Other times it raises an assertion error. test01_basic_replication DBReplicationManger error: File "/hom

[issue3419] multiprocessing module is racy

2008-07-19 Thread Ismail Donmez
New submission from Ismail Donmez <[EMAIL PROTECTED]>: Tested on MacOSX 10.5.4, running test_multiprocessing in a tight loop : [~/Sources/py3k]> while true;do ./python ./Lib/test/regrtest.py test_multiprocessing;done test_multiprocessing 1 test OK. test_multiprocessing 1 test OK. test_multiproc

[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: for k in d.keys(): return k # needs to return a list -- nosy: +rhettinger ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch that doesn't add the enclosing list call in a for loop. -- keywords: +patch Added file: http://bugs.python.org/file10949/smarter_fix_dict.diff ___ Python tracker <[EMAIL PROTECTED

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: hmm. nevermind. those last results clearly used the wrong bsddb library. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: (that last comment was using pybsddb svn r529) ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: python 2.6b1+, bdb 4.7.25 on x86 ubuntu linux. % ../../../../python/trunk/python bsddb3/tests/test_replication.py -v test01_basic_replication (__main__.DBReplicationManager) ... zsh: segmentation fault ../../../../python/trunk/python bsdd

[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread Kathy Van Stone
Kathy Van Stone <[EMAIL PROTECTED]> added the comment: Does ElementTree do anything unusual in importing? That is one area where mod_python is different from standard python. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This is probably a mod_python problem. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread nicodotti
nicodotti <[EMAIL PROTECTED]> added the comment: Thanks for logging this bug Kathy I had the same problem for 2 days! I used the cElementTree as you mentioned and it worked fine -- nosy: +nicodotti ___ Python tracker <[EMAIL PROTECTED]>

[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-19 Thread Joshua Kugler
Joshua Kugler <[EMAIL PROTECTED]> added the comment: That looks good. Thanks! ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue3299] invalid object destruction in re.finditer()

2008-07-19 Thread Fredrik Lundh
Fredrik Lundh <[EMAIL PROTECTED]> added the comment: Reducing priority to normal; this bug has been around since Python 2.2, and only affects code that doesn't work anyway when running on debug builds. -- priority: critical -> normal ___ Python tracke

[issue3299] invalid object destruction in re.finditer()

2008-07-19 Thread Adam Olsen
Changes by Adam Olsen <[EMAIL PROTECTED]>: -- nosy: +Rhamphoryncus ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list maili

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

2008-07-19 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10934/event_generate__data.diff ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1697943] msgfmt cannot cope with BOM

2008-07-19 Thread Christoph Zwerschke
Christoph Zwerschke <[EMAIL PROTECTED]> added the comment: Small improvement of the patch: Instead of hardcoding the BOM as '\xef\xbb\xbf', we should use codecs.BOM_UTF8. ___ Python tracker <[EMAIL PROTECTED]>

[issue3113] Document exception chaining

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Documented in r65144. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

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

2008-07-19 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Actually, it could be the "detail" field too according to http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M24 And this field may not exist, so I'm checking for that now. New patch added. Added file: http://bugs.python.org/file10948/event_generat

[issue3418] heavy resource usage with string functions

2008-07-19 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: As for the possibility of rejecting the request: Python should absolutely not do so. If the user/applications wants to compute the result, and the system has enough virtual memory, then Python should provide the result. If you want to limit

[issue3379] Option to not-exit on test

2008-07-19 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I still think a different method would be better for the no-exit functionality. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3418] heavy resource usage with string functions

2008-07-19 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: The issue is that you're creating a string of 2GB. It's expectable that it'll use a lot of resources. Test this, for example: >>> a = "." * 2147483647 -- nosy: +facundobatista resolution: -> invalid status: open -> closed __

[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Exactly! For example, if the .items call is in a for loop, list() doesn't need to be called. -- title: make the fix_dict fixer explicit -> make the fix_dict fixer smarter ___ Python tracker <[EM

[issue3417] make the fix_dict fixer explicit

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Rather, the list of special contexts in which it is ok to not use list() should be extended. -- nosy: +georg.brandl ___ Python tracker <[EMAIL PROTECTED]> _

[issue3418] heavy resource usage with string functions

2008-07-19 Thread mgogoulos
New submission from mgogoulos <[EMAIL PROTECTED]>: Not sure if this is a bug, however the following string functions when called with very big numbers as the padding arguments consume great system resources. My estimation is that it would help to exist a limit on what can be specified as width.

[issue2913] idlelib/EditorWindow.py uses xrange()

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r65140. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3379] Option to not-exit on test

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Well, the results are displayed on stdout like they are if sys.exit is used. As the first post explains, the use-case is running the tests from an interactive interpreter. ___ Python tracker <[EMAIL PROTECTED

[issue3417] make the fix_dict fixer explicit

2008-07-19 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: Can we make the part of fix_dict that converts d.items/values/keys to list(d.items) explicit? Most of the time, it's fine if the method returns a view and can be a bit of a performance hit to convert it to a list. -- assignee: co

[issue3359] add 'rbU' mode to open()

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: At least the 2.6 docs say "The default is to use text mode, which may convert ``'\n'`` characters to a platform-specific representation on writing and back on reading." ___ Python tracker <[EMAIL PROTECTED]>

[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Added info in r65139. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2523] binary buffered reading is quadratic

2008-07-19 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I don't understand the second loop (where n is given). If n is given, there should be only a single read operation, using max(buffer_size, n-avail) (i.e. the way it is in patch 2). In particular, if the stream is unbuffered, it shouldn't

[issue3416] Wrong inherit in PickleHTMLBuilder

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r65138. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2894] 2to3 discards comments before import statements

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Duplicate of #3334. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: I wrote that I'm unable to fix the bug correctly, but I wrote a patch to avoid the crash: - replace begin by end in error messages: is it correct? - use "end < 0 || len <= end" test to check scanstring() second argument => raise a ValueError

[issue3334] 2to3 looses indentation on import fix

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Your patch works, so I applied it and added a test in sandbox r65137. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3399] Memory corruption in multiprocessing module, OS X 10.5.4

2008-07-19 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Ok, so for the moment, let's set aside the connection refused messages: that may be a case of not cleaning up a socket correctly (which is still bad, but not memory corruption). Of note from the buildbot failure: Assertion failed: (bp != NULL

[issue3331] Possible inconsistency in behavior of list comprehensions vs. generator expressions

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This is not a bug, see this thread: http://mail.python.org/pipermail/python-3000/2008-July/014328.html -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAI

[issue3330] webbrowser module doesn't correctly handle '|' character.

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Closing as invalid. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3311] block operation on closed socket/pipe for multiprocessing

2008-07-19 Thread Jesse Noller
Changes by Jesse Noller <[EMAIL PROTECTED]>: -- assignee: -> jnoller nosy: +jnoller, roudkerk ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3323] Clarify __slots__ behaviour when inheriting

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Added a note in r65136, thanks. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3321] _multiprocessing.Connection() doesn't check handle

2008-07-19 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- priority: -> high ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list maili

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Bob, do you know how to fix this? -- assignee: -> bob.ippolito nosy: +bob.ippolito, georg.brandl ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2706] datetime: define division timedelta/timedelta

2008-07-19 Thread webograph
webograph <[EMAIL PROTECTED]> added the comment: this is the mentioned patch without the function pointers, in case it better fits the python coding style. Added file: http://bugs.python.org/file10946/datetime_datetime_division_dupcode.patch ___ Python track

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, fixed in trunk in r65135, will be merged to Py3k automatically. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3302] segfault on gettext(None)

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r65133. -- assignee: loewis -> georg.brandl nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3416] Wrong inherit in PickleHTMLBuilder

2008-07-19 Thread Yu Xin
New submission from Yu Xin <[EMAIL PROTECTED]>: I use sphinx-0.4.1. When I make pickle, I saw the error message: Traceback (most recent call last): File "/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/__init__.py", line 135, in main app.builder.build_update() File

[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: To reproduce the crash, try very big negative integer as second argument. Example: >>> _json.scanstring("test", -23492394) Erreur de segmentation (core dumped) >>> _json.scanstring(u"test", -1239239) Erreur de segmentation (core dumped) __

[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor
Changes by STINNER Victor <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10831/locale_none.patch ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor
Changes by STINNER Victor <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10945/locale_none-2.patch ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3415] Interpreter error when running a script under debugger control

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: For reference, here is the output of the pdb session: [EMAIL PROTECTED] ~/devel/python> ./python Lib/pdb.py Lib/idlelib/idle.py > /home/gbr/devel/python/Lib/idlelib/idle.py(1)() -> try: (Pdb) break multicall.py:300 *** 'multicall.py' not found

[issue3368] Memory leak in import.c

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Applied in r65132. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3378] Memory leak in pythonrun.c

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Applied in r65131. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3414] frameworkinstall doesn't create Python.app, which breaks python

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r65130. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Jesús Cea Avión
Jesús Cea Avión <[EMAIL PROTECTED]> added the comment: Gregory, could you possibly try my svn, revision 529? ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión
Changes by Jesús Cea Avión <[EMAIL PROTECTED]>: -- resolution: -> fixed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión
Jesús Cea Avión <[EMAIL PROTECTED]> added the comment: Solved in my SVN repository. Revision 527. Testsuite updated. Will be available in bsddb 4.7.2. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-19 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: I agree. That's one of the reasons I un-assigned it to me. Well, that and I couldn't get it to pass all tests. ___ Python tracker <[EMAIL PROTECTED]> ___