[issue2849] Remove usage of rfc822 from the stdlib

2008-05-18 Thread Humberto Diogenes
Changes by Humberto Diogenes <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10375/remove_rfc822-test_urllib2.py __ Tracker <[EMAIL PROTECTED]> __ _

[issue2849] Remove usage of rfc822 from the stdlib

2008-05-18 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: Correction: mimetools is also being removed from py3k (issue 2848). __ Tracker <[EMAIL PROTECTED]> __ __

[issue2849] Remove usage of rfc822 from the stdlib

2008-05-18 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: A quick search for rfc822 imports in py3k reveals this: $ find . -name '*.py' | xargs egrep -nr '(from|import) rfc822' ./Demo/scripts/mboxconvert.py:7:import rfc822 ./Lib/cgi.py:39:import rfc822 ./Lib/mimetools.py:5:import rfc822 ./Lib/tes

[issue1447222] tkinter Dialog fails when more than four buttons are used

2008-05-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I just tried it here and it still happens, it also happens for the 11th button and that is it (5th and 11th). I tried it with tk 8.4 and tk 8.5, python-trunk, python 2.5.2. I'm investigating this. For some reason a pixel object is being ret

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: The tests of the test_math_sum4.py script all pass with the latest math- and cmathmodule.c files for 4 different builds of Python 2.6a3: - GNU gcc 4.0.1 on MacOS X 10.4.11 (Intel Core Duo), 32-bit - GNU gcc 4.1.2 on RHEL 3 update 7 (Opteron),

[issue2912] let platform.uname try harder

2008-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- components: +Library (Lib) priority: -> low __ Tracker <[EMAIL PROTECTED]> __ ___ Python-b

[issue2912] let platform.uname try harder

2008-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list U

[issue2912] let platform.uname try harder

2008-05-18 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: Sometimes os.uname (which is used to bootstrap platform.uname) can return 'unknown' for some items. The fallback code in platform.uname can usually fill these blanks in. However, this is only used when os.uname is not present. It would be

[issue2911] rewrite test_struct as a unittest

2008-05-18 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: Perhaps a bigger bug day task? -- components: Tests keywords: easy messages: 67051 nosy: benjamin.peterson priority: low severity: normal status: open title: rewrite test_struct as a unittest type: feature request __

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Thanks for submitting the patch and the idea. I've previously looked at this approach and decided against it. The struct module is highly optimized and typically called many times in a loop and a patch like this would hurt performance.

[issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Well, I reimplemented gestalt as C (#2854), so I imagine it should go in Modules. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: Okay, here's a new version of my patch. Instead of replacing the default functionality of struct.Struct, this patch now adds the functionality to a separate class called NamedStruct, so as to not break backwards compatibility. The coding s

Re: [issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Brett Cannon
On Sun, May 18, 2008 at 2:21 PM, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl <[EMAIL PROTECTED]> added the comment: > > Do you want me to remove this? > I was holding off until a decision was made as to where to put gestalt back into the stdlib (Mac/Modules, Modules, plat-mac, or plat

[issue1322] platform.dist() has unpredictable result under Linux

2008-05-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Christian was reviewing this for GHOP. -- assignee: georg.brandl -> christian.heimes nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10373/test_math_sum4.py __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10372/cmathmodule4.c.2.6a3.diff __ Tracker <[EMAIL PROTECTED]> __ _

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Attached are updated patches for both the mathmodule.c and cmathmodule.c files for Python 2.6a3 and for the test_math_sum4.py script. Please ignore the ones posted earlier. Added file: http://bugs.python.org/file10371/mathmodule4.c.2.6a3.di

[issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Do you want me to remove this? -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: -> rhettinger nosy: +rhettinger type: -> feature request __ Tracker <[EMAIL PROTECTED]> __

[issue1257] atexit errors should result in nonzero exit code

2008-05-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I'm assigning this to Christian because he was doing the GHOP review. -- assignee: gvanrossum -> christian.heimes nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]>

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10365/mathmodule4.c.2.6a3.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10366/test_math_sum4.py __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue2349] Py3K warn against assigning to True/False

2008-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: benjamin.peterson -> brett.cannon __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bu

[issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- priority: critical -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- assignee: -> brett.cannon __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list U

[issue2910] Remove plat-mac from 3.0

2008-05-18 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: The plat-mac directory is empty in 3.0, but is still there. Plus there are still references in Makefile.pre.in to the package as well. -- components: Library (Lib) messages: 67042 nosy: brett.cannon priority: critical severity: norma

[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Okay, thanks. Fixed in r63461. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2854] Add gestalt back into Python 3.0

2008-05-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10370/gestalt_is_back2.patch __ Tracker <[EMAIL PROTECTED]> __

[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Hi Georg, sorry but I duplicated the FileDialog entry in tkFileDialog and forgot to update the correct names for tkFileDialog, here is a patch to apply over the previous one. I took the time to review the other entries too, just in case I did

[issue2437] Distutils runtime_library_dirs broken on Windows

2008-05-18 Thread Laurent Gautier
Laurent Gautier <[EMAIL PROTECTED]> added the comment: The bug is still here with Python 2.5.2. I anyone want to have it work urgently, there is a quick but very ugly fix: add g['CC'] = 'gcc' into the function _init_nt() in the file Lib\distutils\sysconfig.py of the Python install. --

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2008-05-18 Thread Aaron Gallagher
New submission from Aaron Gallagher <[EMAIL PROTECTED]>: With the advent of collections.namedtuple, I thought that having a counterpart in the struct module would make having to deal with unpacked data much easier. Per suggestion, this extends the behavior of _struct.Struct rather than a separ

[issue2384] [Py3k] line number is wrong after encoding declaration

2008-05-18 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- priority: -> release blocker __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue2903] Add __name__ in globals of generated namedtuple namespace

2008-05-18 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-lis

[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Committed r63456. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue2908] fix_imports new entries for tkinter rename

2008-05-18 Thread Guilherme Polo
New submission from Guilherme Polo <[EMAIL PROTECTED]>: Added entries on fix_imports to deal with the tkinter renaming. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) files: tkinter_imports_fix.diff keywords: patch messages: 67036 nosy: collinwinter, gpolo severi

[issue2907] ZeroDivisionError error message needs clarification

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Rejecting - this isn't leading anywhere. -- nosy: +georg.brandl resolution: -> rejected status: open -> closed __ Tracker <[EMAIL PROTECTED]> _

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10366/test_math_sum4.py __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10365/mathmodule4.c.2.6a3.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Attached is the patch for the the mathmodule.c file of Python 2.6a3 containing the C version of the msum() function from Marks's msum4.py Python implementation. Please review the C code, in particular the setting of _do_sum_pow_2 for FLT_RA

[issue2819] Full precision summation

2008-05-18 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10364/mathmodule4.c.2.6a3.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2907] ZeroDivisionError error message needs clarification

2008-05-18 Thread Chester
New submission from Chester <[EMAIL PROTECTED]>: Please fix the ZeroDivisionError error message string literal to clarify the error message: from if (y == 0) { PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero");

[issue2775] Implement PEP 3108

2008-05-18 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I have now removed the closed issues as dependencies. Thanks to everyone who has helped so far! You have no idea how appreciative I am. -- dependencies: -Create the html package, Create the tkinter package, Moving lib-tk to tkinter p

[issue1811] True division of integers could be more accurate

2008-05-18 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's a patch that fixes the rounding of integer division. It includes a fast path for the case where both integers are small (less than about 3.5e12). -- keywords: +patch Added file: http://bugs.python.org/file10363/long_division

[issue2900] math.copysign(1, float('nan'))

2008-05-18 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Closing this; I'm 99.72% sure the current behaviour is okay. :-) Christian, please feel free to reopen if you think further discussion is needed. -- resolution: -> invalid status: open -> closed __

[issue2906] tkinter, assorted fixes

2008-05-18 Thread Guilherme Polo
New submission from Guilherme Polo <[EMAIL PROTECTED]>: This patch adds support for Tk options that could be passed as a list or tuple, for example. I didn't investigate if there are any of these in tk 8.4, but tk 8.5 has this (the padding option for Ttk Label, for example). Note that this should

[issue2775] Implement PEP 3108

2008-05-18 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10296/tkinter_package_and_fixes_2.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2897] include structmember.h in Python.h

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: We could include it in Py3k. -- assignee: -> gvanrossum nosy: +georg.brandl, gvanrossum versions: +Python 3.0 -Python 2.6 __ Tracker <[EMAIL PROTECTED]> __

[issue2905] test_urllib.py crashes with bus error on Darwin

2008-05-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Should be fixed in r63448. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2905] test_urllib.py crashes with bus error on Darwin

2008-05-18 Thread Ismail Donmez
New submission from Ismail Donmez <[EMAIL PROTECTED]>: Using latest py3k SVN on MacOSX 10.5.2 : [~/Sources/py3k/Lib/test]> ../../python regrtest.py test_urllib.py test_urllib zsh: bus error ../../python regrtest.py test_urllib.py Backtrace: #0 _CallProc (pProc=0x904e95f0 , argtuple=0x5e7bc