[issue1858] Make .pypirc handle multiple servers

2008-05-24 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: This is because the code uses a print statement when opening the .pypirc file. This was already the case before this patch, but the code was not covered by tests. (see in previous revision) The test is not broken, it just ouputs to stdin. I

[issue1798] Add ctypes calling convention that allows safe access of errno

2008-05-24 Thread Armin Rigo
Armin Rigo [EMAIL PROTECTED] added the comment: However, even the TLS copy of errno may change because of this, if the finalizer of some object invokes ctypes, right? Yes, it's annoying, but at least the Python programmer has a way to fix this problem: he can save and restore the TLS copy of

[issue1858] Make .pypirc handle multiple servers

2008-05-24 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is because the code uses a print statement when opening the .pypirc file. This was already the case before this patch, but the code was not covered by tests. (see in previous revision) The test is not broken, it just ouputs to

[issue1858] Make .pypirc handle multiple servers

2008-05-24 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: Right, Thanks! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2889] curses for windows (alternative patch)

2008-05-24 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: The patch, in its current form, is incomplete. Can you please provide: a) a VS 2008 project file, which builds both the curses module and the pdcurses library, fetching the sources for that from ../../pdcurses (or some such); the

[issue2956] 2to3 should have a way to disable some fixers

2008-05-24 Thread Haoyu Bai
New submission from Haoyu Bai [EMAIL PROTECTED]: Sometime we need to enable all fixers but one or two, eg. the 'import' fixer. So it would be fine if there's a way to do that. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) messages: 67289 nosy: bhy, collinwinter

[issue2957] recursion limit exceeded when importing .pyc module

2008-05-24 Thread Haoyu Bai
New submission from Haoyu Bai [EMAIL PROTECTED]: To reproduce the bug, save the uploaded huge.py, then import the module twice: $ python3 -c 'import huge' $ python3 -c 'import huge' Traceback (most recent call last): File string, line 1, in module ValueError: recursion limit exceeded But

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This is a complementary patch that should fix the remaining cases (funnily doctest was relying on the old behaviour). Unfortunately #2833 still remains, and would probably need some discussion on the ML for proper resolution. Added file:

[issue2956] 2to3 should have a way to disable some fixers

2008-05-24 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Once I wanted this too. I'm attaching two patches but I prefer the former which allows the skipped fixer(s) to be logged. -- keywords: +patch nosy: +gpolo Added file: http://bugs.python.org/file10425/fixer_skip.diff

[issue2956] 2to3 should have a way to disable some fixers

2008-05-24 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10426/fixer_skip2.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2956 __ ___

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: For time being, should r62847 be reverted? -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2507 __

[issue2955] Python 2.5 Documentation error in Tutorial section 8.3

2008-05-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: What makes you think that the code does not match the description? -- nosy: +amaury.forgeotdarc __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2955 __

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I don't think so. As Amaury pointed in #2833, the original re-raising behaviour which got changed by fixing the present bug was rather broken in its own way. Anyway, I think the question better be asked on the ML because any solution for the

[issue2806] Py30a5: Tk Menu Alt-f behaves differently Linux vs Windows

2008-05-24 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I just got an information here.. The new way is the recommended way since Tk 8.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2806 __

[issue2955] Python 2.5 Documentation error in Tutorial section 8.3

2008-05-24 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Closing as works for me. -- resolution: - works for me status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2955 __

[issue2950] silly readline module problem

2008-05-24 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: You need to install the development package of readline in order to have the readline module compiled. And this is not a bug. -- nosy: +gpolo resolution: - invalid status: open - closed __ Tracker

[issue2806] Py30a5: Tk Menu Alt-f behaves differently Linux vs Windows

2008-05-24 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Using a frame and menubutton for creating a menubar has been deprecated for a long time. I tried finding when exactly it got marked as deprecated, but I found just this page http://wiki.tcl.tk/4055 which says about a decade ago. --

[issue2958] update Lib/test/README

2008-05-24 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: A good bug day task: Lib/test/README is a bit dated. It still talks about old-style Python tests which have been almost completely removed in 2.6 (and none more should be written.) The assert* methods of unittest should also be stressed

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10424/better_exc_cleanup.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2507 __ ___

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Patch removed, there are still some unsolved cases :-) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2507 __ ___

[issue2944] asyncore doesn't handle connection refused correctly

2008-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola, josiah.carlson, josiahcarlson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2944 __ ___

[issue2888] pprint produces different output in 2.6 and 3.0

2008-05-24 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: It's not a 2.6 bug, as it behaves exactly as the documentation states. In Py3 it *is* different the result than the documentation. However, it's not clear to me if this behaviour is changed deliberately or by mistake (personally, I prefer

[issue2904] Cross-referencing to a method using an alternate title don't work with add_function_parentheses=True

2008-05-24 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: This should now be fixed in r63580. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2904 __

[issue2852] sidebar directive fails

2008-05-24 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: This should now be fixed in SVN. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2852 __

[issue2944] asyncore doesn't handle connection refused correctly

2008-05-24 Thread Giampaolo Rodola'
Giampaolo Rodola' [EMAIL PROTECTED] added the comment: By trying your script on Linux and Windows I notice different behaviors. On Windows handle_expt is always called. On Linux, no matter if using select or poll, handle_accept is called, then an exception is thrown at the time the data is going

[issue2926] Revert SocketServer rename in 2.6

2008-05-24 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Okay, moved the module and applied the patch in r63586, r63587 and r63589. -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2944] asyncore doesn't handle connection refused correctly

2008-05-24 Thread Alexander Shigin
Alexander Shigin [EMAIL PROTECTED] added the comment: Oh, fine. May be handle_error should have been called, but anyway not handle_connect. But in my mind, handle_expt is better. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2944

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

2008-05-24 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10428/issue2636-05-only.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2636 __ ___

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

2008-05-24 Thread Jeffrey C. Jacobs
Jeffrey C. Jacobs [EMAIL PROTECTED] added the comment: I am finally making progress again, after a month of changing my patches from my local svn repository to bazaar hosted on launchpad.net, as stated in my last update. I also have more or less finished the probably easiest item, #5, so I

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

2008-05-24 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10429/issue2636-05.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2636 __ ___

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

2008-05-24 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10056/issue2636-05.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2636 __ ___

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-24 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well, it's true that get_ident() will always give you a reliable number while currentThread() can play dirty games on you at shutdown. The thing is the Thread object is dereferenced before the OS thread actually terminates, so it may be that a

[issue2507] Exception state lives too long in 3.0

2008-05-24 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Here is a hopefully complete patch using the same approach as before. However I'm now convinced that another approach would be better in order to solve both this bug and the various re-raising issues. It would involve replacing most of the

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-24 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: This seems like a useful addition and is easy enough. Patch with tests and documentation attached. Unless I hear objections I will commit it to trunk later this week. Patch available for review here: http://codereview.appspot.com/1301

[issue2775] Implement PEP 3108

2008-05-24 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- dependencies: -Revert SocketServer rename in 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___

[issue2775] Implement PEP 3108

2008-05-24 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10267/socketserver_rename.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___

[issue2959] calling GzipFile close() more than once causes exception

2008-05-24 Thread Michael Magin
New submission from Michael Magin [EMAIL PROTECTED]: Built-in file objects allow repeated calls to .close(), even the documentation states, Calling close() more than once is allowed. (http://docs.python.org/lib/bltin-file-objects.html) GzipFile does not obey this aspect of the file interface:

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-24 Thread Irmen de Jong
Irmen de Jong [EMAIL PROTECTED] added the comment: Thanks Gregory, for taking the time to make a patch. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2871 __ ___

[issue2925] Revert Queue rename in 2.6

2008-05-24 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2925 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2925] Revert Queue rename in 2.6

2008-05-24 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: r63104 moved the stud module from Lib to Lib/lib-old. r63080 changed some docs and added a test for the rename. r63077 changed imports. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2925

[issue2925] Revert Queue rename in 2.6

2008-05-24 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: After performing a ``svn rename`` on Lib/queue.py to Lib/Queue.py the attached patch should revert all other changes related to the rename. As per usual, I am on OS X so I can't do the case-sensitive rename. If someone could do the svn rename,

[issue2923] Revert ConfigParser rename in 2.6

2008-05-24 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: I have uploaded a patch that when applied after a ``svn rename`` for Lib/configparser.py to Lib/ConfigParser.py, should revert the rename. Since I am on OS X I can't do the rename myself. -- keywords: +patch Added file:

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

2008-05-24 Thread Gregory P. Smith
New submission from Gregory P. Smith [EMAIL PROTECTED]: Using Linux with BerkeleyDB 4.7.25 the bsddb/test/test_replication.py test is very flaky. It alternately passes, raises an AssertionError because of the timeout or gets a segmentation fault or bus error. (side note: i updated

[issue2961] Two error messages inconsistent

2008-05-24 Thread Chester
New submission from Chester [EMAIL PROTECTED]: Hello, I would like to report that two error messages of the Python parser are not consistent. Please take a look at this: a = hello a + 1 Traceback (most recent call last): File stdin, line 1, in module TypeError: cannot concatenate 'str'