[issue5175] negative PyLong - C unsigned integral, TypeError or OverflowError?

2009-02-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - marketdickinson nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5175 ___

[issue1528074] difflib.SequenceMatcher.find_longest_match() wrong result

2009-02-07 Thread Jan
Jan pf...@yahoo.com.br added the comment: hi all, just got bitten by this, so i took the time to reiterate the issue. according to the docs: http://docs.python.org/library/difflib.html find_longest_match() should return the longest matching string: If isjunk was omitted or None,

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r69409. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5174 ___

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Jon Dee
New submission from Jon Dee j.a.t@gmail.com: Without this flag it is necessary to wait for e.g. 120s after closing down a 'BaseManager' server before restarting, due to the socket being in the TIME_WAIT state. Example error, which occurs if a server is started, data transmitted down the

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5177 ___

[issue5134] Compiler warnings in sqlite module

2009-02-07 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a patch that works similar to sqlite3_warnings, but moves all sqlite3.dll settings into a separate property file. Added file: http://bugs.python.org/file12968/sqlite.patch ___ Python tracker

[issue5137] SystemError when __len__ returns a non-number

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Here's patch that raises a TypeError like 2.x. -- keywords: +needs review, patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file12969/SystemError_bad_len.patch ___ Python

[issue4704] Update pybench for python 3.0

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If possible, pybench should work unchanged in both Python 2.x and 3.x. Ok, the best I can do is to make it 2.6-compatible. For versions before 2.6, stuff like except Exception as e does not make compatibility reasonably achievable.

[issue4704] Update pybench for python 3.0

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r69411, r69412. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4704 ___

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5177 ___ ___ Python-bugs-list mailing

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Skip, removing the colon doesn't work if the macro adds code after the colon :) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Neil Schemenauer
New submission from Neil Schemenauer nas-pyt...@arctrix.com: I noticed that it would be nice to have a temporary directory context manager while trying to fix a broken unittest. The attached patch provides a pretty minimal implementation. There appears to be lots of unit tests that could use

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Senthil
Senthil orsent...@gmail.com added the comment: Sorry to bring this fixed-closed issue back again. I see that this was committed in a hurry. Either, shutil.destinsrc should be Documented, there currently does not exists any documentation to explain what destinsrc is supposed to do, or the

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Made private in r69415. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2047 ___ ___

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Senthil
Senthil orsent...@gmail.com added the comment: Thanks for the quick action. Really nice. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2047 ___ ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: A bit cleaner patch. Added file: http://bugs.python.org/file12971/protect_tk_loading.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: Removed file: http://bugs.python.org/file12960/checking_for_failed_tk_load-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: Removed file: http://bugs.python.org/file12958/checking_for_failed_tk_load.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___

[issue5179] subprocess leaves open fds on construction error

2009-02-07 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: The test case below will (on Linux here) eventually quit with OSError: [Errno 24] Too many open files. I assume that some additional cleaning up is in order. --- from subprocess

[issue5179] subprocess leaves open fds on construction error

2009-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Proposed patch attached. Added file: http://bugs.python.org/file12972/sp-patch.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5179 ___

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: A __del__ method is definitely desirable (tempfile._TemporaryFileWrapper gives an example of how to cache the relevant globals on the class object to avoid attempting calls to None during interpreter shutdown). The new examples are good, but

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: protect_tk_loading.diff works for me. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___ ___

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2009-02-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The pickle was generated by pybench. You can try to display it by running: ./python Tools/pybench/pybench.py --debug -s 27.bench It fails with the following traceback: Traceback (most recent call last): File Tools/pybench/pybench.py, line

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is the pickle file. Added file: http://bugs.python.org/file12973/27.bench ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5180 ___

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This failure happens on all 3.x buildbots: == ERROR: test_empty_socket (test.test_urllib.urlopen_HttpTests)

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r69416. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5181

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now test_docxmlrpc fails and test_httpservers times out... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5181 ___

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Benjamin, r69416 breaks at least test_docxmlrpc and test_httplib, and hangs on test_httpservers (Gentoo, Debian ppc, OSX buildbots show it). -- nosy: +ajaksu2 ___ Python tracker rep...@bugs.python.org

[issue5160] Intermittant segmentation fault with ctrl-c (threads and queues)

2009-02-07 Thread Corey Goldberg
Corey Goldberg cgoldb...@gmail.com added the comment: note: on Windows Vista it is not ery intermittant :) crashes every time the program is stopped. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5160

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Apparently, I don't know what I'm doing. reverted in r69418. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5181

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-07 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-features-2.diff is based on Python 2.6. Bugfix. No new features. Added file: http://bugs.python.org/file12974/issue2636-features-2.diff ___ Python tracker rep...@bugs.python.org

[issue4631] urlopen returns extra, spurious bytes

2009-02-07 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Here's a test (in test_urllib2_localnet) that fails before the patch and passes after, mostly lifted from test_httplib: def test_chunked(self): expected_response = bhello world chunked_start = (

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Antoine Skip, removing the colon doesn't work if the macro adds code Antoine after the colon :) When I looked I thought both TARGET and TARGET_WITH_IMPL ended with a colon, but I see that's not the case. How about removing TARGET_WITH_IMPL

[issue4195] Regression for executing packages

2009-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Incorporated as: 2.7: r69419 3.1: r69421 -- resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4195

[issue5182] str() on memoryview of bytearray failing on py3k

2009-02-07 Thread Mark Hammond
New submission from Mark Hammond mhamm...@users.sourceforge.net: % py30 -c str(memoryview(bytearray((1,2,3 Traceback (most recent call last): File string, line 1, in module TypeError: __str__ returned non-string (type bytes) The expected behaviour is that a string representation be

[issue5182] str() on memoryview of bytearray failing on py3k

2009-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5182 ___ ___ Python-bugs-list mailing

[issue3521] file.readline: bad exception recovery

2009-02-07 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Maybe this one should be in 3.0.1? Benchmarking the isinstance approach against int() would be interesting. The io-c branch doesn't have this bug, so 3.1 is OK :) ___ Python tracker rep...@bugs.python.org

[issue4512] Add get_filename method to zipimport

2009-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: ZipImporter.get_filename() made public in: 2.7: r69425 3.1: r69426 -- resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- priority: - normal versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5178 ___

[issue5178] Add context manager for temporary directory

2009-02-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Add content manager for temporary directory - Add context manager for temporary directory ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5178

[issue5183] wsgiref.simple_server not working

2009-02-07 Thread Stephen Day
New submission from Stephen Day stephen.h@gmail.com: The attached application doesn't work. I think the value of self.headers (see line 114) has a blank line at the end that it did not in Python 2.5 Here is the error message that occurs when it gets a request (http://127.0.0.1:8080/):

[issue5183] wsgiref.simple_server not working

2009-02-07 Thread Stephen Day
Stephen Day stephen.h@gmail.com added the comment: This seems to be fixed already (see Issue4718). Next time I'll search more... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5183 ___