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

2009-02-07 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-02-07 Thread Jan
Jan 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, find_longest_match() returns

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-07 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69409. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Jon Dee
New submission from Jon Dee : 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 socket, the server shu

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5134] Compiler warnings in sqlite module

2009-02-07 Thread Martin v. Löwis
Martin v. Löwis 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 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 tracker

[issue4704] Update pybench for python 3.0

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou 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 added the comment: Committed in r69411, r69412. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Skip, removing the colon doesn't work if the macro adds code after the colon :) ___ Python tracker ___ ___ Py

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Neil Schemenauer
New submission from Neil Schemenauer : 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 such a thing (just searc

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

2009-02-07 Thread Senthil
Senthil 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 function should be made _

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

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Made private in r69415. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2009-02-07 Thread Senthil
Senthil added the comment: Thanks for the quick action. Really nice. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

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

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

2009-02-07 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file12960/checking_for_failed_tk_load-2.diff ___ Python tracker ___ ___ Pytho

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

2009-02-07 Thread Guilherme Polo
Changes by Guilherme Polo : Removed file: http://bugs.python.org/file12958/checking_for_failed_tk_load.diff ___ Python tracker ___ ___ Python-b

[issue5179] subprocess leaves open fds on construction error

2009-02-07 Thread Georg Brandl
New submission from Georg Brandl : 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 import Popen, P

[issue5179] subprocess leaves open fds on construction error

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

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Nick Coghlan
Nick Coghlan 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 may give the misleadi

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

2009-02-07 Thread Eric Smith
Eric Smith added the comment: protect_tk_loading.diff works for me. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2009-02-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 954, in P

[issue5180] 3.1 cannot unpickle 2.7-created pickle

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

[issue5181] test_urllib failures on the 3.1 buildbots

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

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r69416. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now test_docxmlrpc fails and test_httpservers times out... ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Daniel Diniz
Daniel Diniz 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

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

2009-02-07 Thread Corey Goldberg
Corey Goldberg added the comment: note: on Windows Vista it is not ery intermittant :) crashes every time the program is stopped. ___ Python tracker ___ __

[issue5181] test_urllib failures on the 3.1 buildbots

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Apparently, I don't know what I'm doing. reverted in r69418. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ _

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

2009-02-07 Thread Matthew Barnett
Matthew Barnett 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 _

[issue4631] urlopen returns extra, spurious bytes

2009-02-07 Thread Daniel Diniz
Daniel Diniz 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 = b"hello world" chunked_start = ( b'a\r\n'

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Skip Montanaro
Skip Montanaro 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 and just inclu

[issue4195] Regression for executing packages

2009-02-07 Thread Nick Coghlan
Nick Coghlan added the comment: Incorporated as: 2.7: r69419 3.1: r69421 -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

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

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

2009-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3521] file.readline: bad exception recovery

2009-02-07 Thread Daniel Diniz
Daniel Diniz 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

[issue4512] Add get_filename method to zipimport

2009-02-07 Thread Nick Coghlan
Nick Coghlan 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 ___

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- priority: -> normal versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5178] Add context manager for temporary directory

2009-02-07 Thread Nick Coghlan
Changes by Nick Coghlan : -- title: Add content manager for temporary directory -> Add context manager for temporary directory ___ Python tracker ___

[issue5183] wsgiref.simple_server not working

2009-02-07 Thread Stephen Day
New submission from Stephen Day : 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/): Exception happened during

[issue5183] wsgiref.simple_server not working

2009-02-07 Thread Stephen Day
Stephen Day added the comment: This seems to be fixed already (see Issue4718). Next time I'll search more... ___ Python tracker ___ ___ Python