[issue2887] bsddb 4.6.4 needs to be ported to Python 3.0

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I believe Jesus wants to do this is such a way that bsddb.h and _bsddb.c are a single code base with #ifdef's that compiles on 2.x and 3.x at once. -- assignee: - jcea __ Tracker [EMAIL PROTECTED]

[issue2961] Two error messages inconsistent

2008-05-25 Thread Chester
Chester [EMAIL PROTECTED] added the comment: For the case a + 1 I recommend: TypeError: can't concatenate 'str' and 'int' objects And for the case 1 + a I recommend: TypeError: can't concatenate 'int' and 'str' objects Consistency matters! __ Tracker

[issue2962] Goodbye, 'global' statement!

2008-05-25 Thread Chester
New submission from Chester [EMAIL PROTECTED]: The 'global' statement is used to mark a variable as global. It is used in functions to allow statements in the function body to rebind global variables. Using the 'global' statement is generally considered poor style and should be avoided whenever

[issue2925] Revert Queue rename in 2.6

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Renamed and fixed references in r63599, r63600, r63603. -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2925

[issue2923] Revert ConfigParser rename in 2.6

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Renamed module, applied patch and adapted some further references in r63605-07. -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2879] Rename _winreg to winreg

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Renamed in 3k in r63610, added note in 2.6 docs in r63611, added fixer entry in r63612. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2961] Two error messages inconsistent

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: I don't see a problem here. You may be mislead by the assumption that the error messages are generated by the parser, which they aren't -- they are generated at runtime by the objects you try to add. The two types report their failure to do the

[issue2962] Goodbye, 'global' statement!

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: First, global is frowned upon in large projects, but sometimes useful in quick dirty scripts. Second, the time for such changes to Python 3.0 is past. Third, this at least needs a PEP. -- nosy: +georg.brandl resolution: - rejected

[issue2963] Method cache is broken in Py3

2008-05-25 Thread Stefan Behnel
New submission from Stefan Behnel [EMAIL PROTECTED]: The method cache is deactivated in current Py3. As Lisandro Dalcín noticed, the following code in typeobject.c always returns false for a Py3 identifier: #define MCACHE_CACHEABLE_NAME(name) \

[issue2853] *** glibc detected *** python: double free or corruption

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Could you supply some real code in a test case and better describe the environment needed to reproduce this? (what OS for the client and server, 64bit, 32bit, mount options, etc). -- nosy: +gregory.p.smith priority: - critical

[issue2782] datetime/date strftime() method and time.strftime() inconsistency

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Yes, sounds like a bug. I'll fix it. But should time.strftime allow a unicode format string as input in the first place? For backwards compatibility I'd say yes. But.. Sane output can not be guaranteed from time.strftime when given a

[issue2669] bsddb iterkeys sliently fails when database modified during iteration

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Fixed in trunk r63617. Fix issue2669: bsddb simple/legacy interface iteration silently fails when database changes size during iteration. It now behaves like a dictionary, the next attempt to get a value from the iterator after the database

[issue2964] instancemethod_descr_get() lacks an INCREF

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r63620. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2964 __

[issue2891] urllib not handling ftp servers that do not support REST

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I believe that means we can close this issue here? If not, please reopen. -- nosy: +gregory.p.smith resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED]

[issue2595] Multiple integer overflows in imgfile extension module lead to buffer overflow

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2595 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2523] binary buffered reading is quadratic

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- nosy: +gregory.p.smith priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2523 __ ___ Python-bugs-list

[issue2949] Windows installer doesn't include OpenSSL license and notice

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- priority: - release blocker __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2949 __ ___ Python-bugs-list mailing list

[issue2455] stat.ST_CTIME and stat.ST_ATIME problem

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2455 __ ___

[issue2254] Python CGIHTTPServer information disclosure

2008-05-25 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Could you please create a test case for this as a patch to Lib/test/test_httpservers.py? thanks! -- assignee: - gregory.p.smith nosy: +gregory.p.smith priority: - normal __ Tracker [EMAIL

[issue2588] PyOS_vsnprintf() underflow leads to memory corruption

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- assignee: - gregory.p.smith keywords: +patch nosy: +gregory.p.smith priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2588 __

[issue2589] PyOS_vsnprintf() potential integer overflow leads to memory corruption on esoteric architectures

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- assignee: - gregory.p.smith nosy: +gregory.p.smith priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2589 __

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- nosy: +gregory.p.smith priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2901 __ ___ Python-bugs-list

[issue2964] instancemethod_descr_get() lacks an INCREF

2008-05-25 Thread Stefan Behnel
New submission from Stefan Behnel [EMAIL PROTECTED]: Here is a fix for Objects/classobject.c in Py3.0a5 that fixes a ref count crash for classmethods. -- components: Interpreter Core files: instancemethod-fix.patch keywords: patch messages: 67334 nosy: scoder severity: normal status:

[issue2965] Update interface of weakref dictionaries

2008-05-25 Thread Georg Brandl
New submission from Georg Brandl [EMAIL PROTECTED]: The weak dictionaries in the weakref module still present the 2.x dictionary methods (iter*). This should be fixed for consistency with 3k dicts. -- components: Library (Lib) messages: 67339 nosy: georg.brandl priority: critical

[issue2218] Enhanced hotshot profiler with high-resolution timer

2008-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith [EMAIL PROTECTED]: -- keywords: +patch nosy: +gregory.p.smith priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2218 __ ___

[issue2963] Method cache is broken in Py3

2008-05-25 Thread Stefan Behnel
Stefan Behnel [EMAIL PROTECTED] added the comment: Here is a patch that fixes this. -- keywords: +patch Added file: http://bugs.python.org/file10435/py3k-method-cache-fix.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2963

[issue2963] Method cache is broken in Py3

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Committed patch as r63621. Thanks! -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2963 __

[issue2966] pydoc doesnt show 'from module import identifier' in the docs

2008-05-25 Thread Peter Puk
New submission from Peter Puk [EMAIL PROTECTED]: When you try to make a doc from your programm woth pydoc, it doesnt show the the identifiers in the modules section. when i put 'from module import identifier' in my code -- components: Extension Modules messages: 67340 nosy: peter.puk

[issue2967] [PATCH] Rename Tkinter to tkinter in test_tcl

2008-05-25 Thread Ismail Donmez
Changes by Ismail Donmez [EMAIL PROTECTED]: -- type: - compile error __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2967 __ ___ Python-bugs-list mailing list

[issue2967] [PATCH] Rename Tkinter to tkinter in test_tcl

2008-05-25 Thread Ismail Donmez
New submission from Ismail Donmez [EMAIL PROTECTED]: Tkinter module is renamed to tkinter. test_tcl should be updated for this. Patch attached. -- components: Tests files: tcl.patch keywords: patch messages: 67341 nosy: cartman severity: normal status: open title: [PATCH] Rename

[issue2967] [PATCH] Rename Tkinter to tkinter in test_tcl

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r63624. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2967 __

[issue2966] pydoc doesnt show 'from module import identifier' in the docs

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Can you expand a bit? What exactly do you expect in the generated documentation that is not there? -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2966

[issue2949] Windows installer doesn't include OpenSSL license and notice

2008-05-25 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is now fixed in r63625 and r63626. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2949 __

[issue756093] complex pow() crash on Alpha

2008-05-25 Thread Ali Polatel
Ali Polatel [EMAIL PROTECTED] added the comment: Probably related to this. test_pow fails on alpha with both 2.4.4 and 2.5.2. test test_pow failed -- Traceback (most recent call last): File /var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_pow.py, line 109, in

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10438/typetools.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841 ___

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10389/typetools.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841 ___

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10390/test_typetools.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841 ___

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10402/typetools.rst Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841 ___

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Updated test cases and documentation to cover use of a descriptor for _target in a subclass, and uploaded most recent local copies of all 3 files. -- keywords: +patch versions: +Python 3.0 -Python 2.2.1, Python 2.2.2, Python 2.2.3,

[issue643841] New class special method lookup change

2008-05-25 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10439/test_typetools.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841 ___

[issue2875] Rename the thread module to _thread

2008-05-25 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Done in r63631. Fixer added in r63627 and r63629, notices to 2.6 docs added in r63630. Do you still want to warn when importing thread or dummy_thread directly in 2.6, like PEP 3108 says? -- nosy: +georg.brandl resolution: - fixed

[issue2968] Test_imports takes a long time to run

2008-05-25 Thread Martin v. Löwis
New submission from Martin v. Löwis [EMAIL PROTECTED]: Test_imports takes a very long time to complete. I believe this is due to the individual refactorings taking such a long time, even though they apply to small pieces of code only. -- messages: 67348 nosy: loewis severity: normal

[issue2968] Test_imports takes a long time to run

2008-05-25 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- assignee: - collinwinter components: +2to3 (2.x to 3.0 conversion tool) nosy: +collinwinter __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2968 __

[issue2969] Test_imports fails in 2.6

2008-05-25 Thread Martin v. Löwis
New submission from Martin v. Löwis [EMAIL PROTECTED]: Test_imports fails for selected cases, when run under Python 2.6. E.g. from_import_usage fails for rewriting __builtin__ print, and also for __builtin__ zip. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool)

[issue2938] Interactive help writes to the python install destination directory

2008-05-25 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Thanks for the report. This should now be fixed with r63643, r63644 and r63645. -- nosy: +loewis resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2938

[issue2906] tkinter, assorted fixes

2008-05-25 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I found a problem in the previous patch, new one added. This patch now only considers tuple and list as possible option value that should be joined, and the items inside the list or tuple should be either a string or integer, otherwise it

[issue2906] tkinter, assorted fixes

2008-05-25 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10362/fixes_tkinter.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2906 __ ___

[issue2966] pydoc doesnt show 'from module import identifier' in the docs

2008-05-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I think he means that if you use from m import x to import part of module interface, x is not shown in the generated doc. -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED]

[issue2965] Update interface of weakref dictionaries

2008-05-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Attaching patch. -- keywords: +patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file10441/weakref_py3k.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2965

[issue2572] 3.0 pickle docs -- what about old-style classes?

2008-05-25 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Alexandre, would you mind fixing up the docs? -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2572 __

[issue2875] Rename the thread module to _thread

2008-05-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Yeah, it is essentially a deprecation so the warning should be there. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2875 __

[issue2875] Rename the thread module to _thread

2008-05-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: But then again I thought that about the renames. =) Someone might actually pickle something from thread, so not sure how best to handle this one. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2875

[issue2775] Implement PEP 3108

2008-05-25 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- dependencies: -Rename _winreg to winreg, Rename the thread module to _thread, Revert ConfigParser rename in 2.6, Revert Queue rename in 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775

[issue2876] Write UserDict fixer for 2to3

2008-05-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Raymond, can you tell me exactly where each module-level thing in UserDict went and if it was renamed or not? That way the fixer can get written. -- assignee: - rhettinger __ Tracker [EMAIL PROTECTED]

[issue2877] Backport UserString move from 3.0

2008-05-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Raymond, can you tell me exactly where each module-level thing in UserString went and if it was renamed or not? That way the fixer can get written. -- assignee: - rhettinger __ Tracker [EMAIL

[issue2878] Backport UserList move in 3.0

2008-05-25 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Raymond, can you tell me exactly where each module-level thing in UserList went and if it was renamed or not? That way the fixer can get written. -- assignee: - rhettinger nosy: +rhettinger __ Tracker

[issue2872] Remove commands for PEP 3108

2008-05-25 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- assignee: - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2872 __ ___ Python-bugs-list mailing list

[issue2888] pprint produces different output in 2.6 and 3.0

2008-05-25 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: I think I *slightly* prefer the 'new' way. Was pprint.py changed between 2.6 and 3.0? Or is the change a side-effect of 3.0 changes? Or of 2to3 if that was used? (In glancing through it, I did not see anything that needed change) Fred, I am

[issue2876] Write UserDict fixer for 2to3

2008-05-25 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: UserDict.UserDict is gone. UserDict.IterableUserDict class is now collections.UserDict. UserDict.Mixin is now collections.MutableMapping. The new classes comform to the new dict API, so they fixer needs to also make same method

[issue2878] Backport UserList move in 3.0

2008-05-25 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: It was moved to the collections module. -- assignee: rhettinger - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2878 __

[issue2877] Backport UserString move from 3.0

2008-05-25 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: It was moved to the collections module. -- assignee: rhettinger - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2877 __

[issue2876] Write UserDict fixer for 2to3

2008-05-25 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: rhettinger - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2876 __ ___ Python-bugs-list

[issue2970] test_distutils fails on Linux

2008-05-25 Thread Ismail Donmez
New submission from Ismail Donmez [EMAIL PROTECTED]: This is on Ubuntu 8.04 : test_distutils Using PyPI login from /home/cartman/Sources/py3k/Lib/distutils/tests/.pypirc Using PyPI login from /home/cartman/Sources/py3k/Lib/distutils/tests/.pypirc Using PyPI login from

[issue2971] test_zipfile64 fails

2008-05-25 Thread Ismail Donmez
New submission from Ismail Donmez [EMAIL PROTECTED]: test_zipfile64 testDeflated (test.test_zipfile64.TestsWithSourceFile) ... ERROR testStored (test.test_zipfile64.TestsWithSourceFile) ... ERROR == ERROR: testDeflated