[issue2723] Truncate __len__() at sys.maxsize

2008-05-11 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: On Sun, May 11, 2008 at 6:38 PM, Gregory P. Smith <[EMAIL PROTECTED]> wrote: .. > But I must've missed something, why can't __len__ return the correct > value? The problem is the C signature of the sq_length slot: typedef Py_ssize_t (*

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-05-11 Thread Sven Siegmund
New submission from Sven Siegmund <[EMAIL PROTECTED]>: I have a source code which IDLE 3.0a5 cannot parse, but Python 3.0a5 can (also attached): #!/usr/bin/python # -*- coding: utf-8 -*- def načtiSlovník(zdroj='slovník.txt'): soubor = open(zdroj, mode='r', encoding='utf_8') řádky = so

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-05-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This should be fixed differently (directly applying the RE to bytes objects), but it needs a re that handles bytes first. -- assignee: -> georg.brandl nosy: +georg.brandl priority: high -> critical __ T

[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I though Georg already did this in r63068. -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ __

[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: -- nosy: -gvanrossum resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1234985] using some_re.sub() often imports sre.__doc__

2008-05-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: pattern.sub() imports the SRE Python module (to call its subx()) with PyImport_Import -- that C functions uses a dummy list ['__doc__'] to get the correct module for dotted import paths. The import of an additional module is gone now that re is

[issue678464] Docs don't define sequence-ness very well

2008-05-11 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- type: -> feature request Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mail

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Changes by Andrews Patrick Rocha Medina <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10294/deprecated_symtable_on_py26.patch __ Tracker <[EMAIL PROTECTED]> __ __

[issue2196] Fix hasattr's exception problems

2008-05-11 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Done in r63119. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2828] Clean up undoc.rst

2008-05-11 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: Doc/library/undoc.rst needs to be cleaned up once PEP 3108 has been implemented. -- assignee: brett.cannon components: Documentation keywords: easy messages: 66694 nosy: brett.cannon priority: normal severity: normal status: open tit

[issue2828] Clean up undoc.rst

2008-05-11 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- dependencies: +Implement PEP 3108 priority: normal -> high __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: I'm working on creating html package with HTMLParser and htmlentitydefs __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2775] Implement PEP 3108

2008-05-11 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Just so people know, feel free to create new issues for stuff if you want. Other issues can be made dependencies of this issue very easily. __ Tracker <[EMAIL PROTECTED]> _

[issue2775] Implement PEP 3108

2008-05-11 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10257/queue_rename.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue2775] Implement PEP 3108

2008-05-11 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- dependencies: +Remove mac modules __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue2775] Implement PEP 3108

2008-05-11 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: New patch regarding the move to tkinter package, now with docs updated. This one should be the "final" patch, and while the patch is relatively large it mostly trivial to review. Added file: http://bugs.python.org/file10296/tkinter_package_an

[issue2775] Implement PEP 3108

2008-05-11 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10290/tkinter_package_and_fixes.diff __ Tracker <[EMAIL PROTECTED]> __ _

[issue1645148] MIME renderer: wrong header line break with long subject?

2008-05-11 Thread Kayne Naughton
Kayne Naughton <[EMAIL PROTECTED]> added the comment: Just struck this myself, found Andi's solution to work. Constructing the header using email.header stops it from breaking the line awkwardly (vs. just storing a string). Suggest the documentation example page be updated to use header() in pl

[issue1645148] MIME renderer: wrong header line break with long subject?

2008-05-11 Thread Kayne Naughton
Kayne Naughton <[EMAIL PROTECTED]> added the comment: Argg, yes, as Andi explained it's the tab (not sure how I missed that on first reading). _ Tracker <[EMAIL PROTECTED]> _ ___

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: For to remove the htmllib on Python 3000 is need to removed these files: Lib/htmllib.py Lib/test_htmllib.py And apply this patch Added file: http://bugs.python.org/file10297/htmllib_removed_on_py3k.diff __

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

2008-05-11 Thread Bruno Gomes
Bruno Gomes <[EMAIL PROTECTED]> added the comment: In this fix I removed the use of the file name in order to return the distname. Now, only the file contents is taken into account. On Centos, the file name is the same as on Redhat, but its contents is different: $ cat /etc/redhat-release CentO

[issue2829] Copy cgi.parse_qs() to urllib.parse

2008-05-11 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: cgi.parse_qs() really belongs more in urllib.parse. Move it so that people no longer have to import cgi just for that one function. -- assignee: brett.cannon components: Library (Lib) messages: 66703 nosy: brett.cannon priority: norm

[issue2829] Copy cgi.parse_qs() to urllib.parse

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

[issue2830] Copy cgi.escape() to html

2008-05-11 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: cgi.escape() really belong in the new 'html' package. -- components: Library (Lib) messages: 66704 nosy: brett.cannon priority: normal severity: normal status: open title: Copy cgi.escape() to html type: feature request versions: Pyth

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
New submission from Scott Dial <[EMAIL PROTECTED]>: Georg Brandel suggested enumerate() should have the ability to start on an arbitrary number (instead of always starting at 0). I suggest such a parameter should be keyword-only. Attached is a patch to add such a feature along with added test cas

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Changes by Scott Dial <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10300/enumerate.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Changes by Scott Dial <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10299/enumerate.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bu

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Changes by Scott Dial <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10300/enumerate.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bu

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Changes by Scott Dial <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10301/enumerate.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs

[issue1713041] fix for 1712742: corrects pprint's handling of 'depth'

2008-05-11 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> added the comment: It seems that somewhere along the road between revision 55144 (where the first patch was generated) and current trunk (revision 63129), PrettyPrinter._format has stopped handling depth! I've attached a patch that fixes this, along

[issue2832] Line numbers reported by extract_stack are offset by the #-*- encoding line

2008-05-11 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov <[EMAIL PROTECTED]>: Stack trace information extracted with traceback.extract_stack is incorrect in that the #-*- line causes double counting. For example: #comment from traceback import extract_stack print("this is line", extract_stack()[-1][1]) prints 'thi

[issue2831] Adding start to enumerate()

2008-05-11 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: If a start argument gets accepted, it should be positional, not a keyword-only argument. That is a complete waste when there is just one argument with a straight-forward interpretation. Besides, METH_O is a lot faster than the alterna

[issue2831] Adding start to enumerate()

2008-05-11 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Forget the part about METH_O. That was incorrect. Another idea to order the positional args as ([start,], iterator). That corresponds to with range([start,] stop) and it matches the output order (number, element): for i, element i

[issue2831] Adding start to enumerate()

2008-05-11 Thread Scott Dial
Scott Dial <[EMAIL PROTECTED]> added the comment: As it stands, enumerate() already takes a "sequence" keyword as an alternative to the first positional argument (although this seems to be completely undocumented). So, as you say, METH_O is a no go. I agree with you in that my original complaint

<    1   2