[issue1267629] pdb: implement "until",fix for 1248119

2008-05-10 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Benjamin: please reformat to PEP 8, then this is okay to check in. Don't forget docs and NEWS updates. -- assignee: -> benjamin.peterson nosy: +benjamin.peterson, georg.brandl resolution: -> accepted _

[issue2775] Implement PEP 3108

2008-05-10 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: Andrews, this discussion would be more appropriate to the mailing list, but anyway: I believe you're mixing things up. When PEP 3108 says "remove symtable/_symtable", it must be talking only about symtable.py and symtablemodule.c, not sy

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: The files Python/compile.c and Python/pythonrun.c depends of the _symtable (Python/symtable.c and Include/symtable.h). What I do for remove _symtable in py3k? __ Tracker <[EMAIL PROTECTED]>

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: I think the name is not good, should be "toepoch" or something like that. __ Tracker <[EMAIL PROTECTED]> __ __

[issue2815] Python Manuals: horizontal scrolling broken

2008-05-10 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: 3.0a5, Windows, Python Manuals window opened from Start menu Ordinary text wraps and adjusts to window width. Text in green boxes does not. If too long to fit window, given the font size, horizontal scroll bar at bottom gives access to over

[issue2775] Implement PEP 3108

2008-05-10 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Just so people know, I have emailed python-dev about renaming urllib as I realized there are some issues with the solution proposed in the PEP. -- priority: critical -> release blocker __ Tracker <[EMAI

[issue756982] mailbox should use email not rfc822

2008-05-10 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: I created issue 2814 with a patch to remove those old classes. Tracker <[EMAIL PROTECTED]> _

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread samwyse
samwyse <[EMAIL PROTECTED]> added the comment: In the attached file, I've refactored the entire BaseHTTPRequestHandlerTestCase class. In doing so, I couldn't help but notice that we're expecting HTTP/1.1 responses when sending HTTP/1.0 requests. RFC 2616 is unclear about whether this is legitim

[issue2814] Remove old classes from mailbox module

2008-05-10 Thread Humberto Diogenes
Changes by Humberto Diogenes <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10277/mailbox-remove_deprecated_doc.patch __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2814] Remove old classes from mailbox module

2008-05-10 Thread Humberto Diogenes
New submission from Humberto Diogenes <[EMAIL PROTECTED]>: mailbox.py has one section marked as "classes from the original module (for backward compatibility)", which are all listed as deprecated in the module documentation. In issue 756982, A. M. Kuchling agreed that "removing those old class

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread samwyse
samwyse <[EMAIL PROTECTED]> added the comment: Although any given implementation of an HTTP server is likely to serve up its headers in a predicable, repeatable, order, I don't think that we should specify a particular order in the test suite. Section 4.2 of RFC 2616 specifically states, "The or

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-05-10 Thread Vinicius Baggio Fuentes
Changes by Vinicius Baggio Fuentes <[EMAIL PROTECTED]>: -- nosy: +vinibaggio __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-05-10 Thread Sergio Oliveira Campos
Sergio Oliveira Campos <[EMAIL PROTECTED]> added the comment: Added check to conform RFC2045 (section 6.4) for Python 2.6 -- nosy: +seocam Added file: http://bugs.python.org/file10275/issue1874-fixed-2.6.patch __ Tracker <[EMAIL PROTECTED]>

[issue2775] Implement PEP 3108

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

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: Ack, sorry. My 'vi' settings should now be correct. Added file: http://bugs.python.org/file10274/1174606-3.patch _ Tracker <[EMAIL PROTECTED]> ___

[issue1581906] test_sqlite fails on OS X if test_ctypes is run

2008-05-10 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: Skip, I had the same problem as you, with the same solution. On a MacBook Pro running Mac OS X 10.5.2, running test_ctypes and test_sqlite together would kill my machine. Found another installation of sqlite3 on /usr/local, removed it an

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Changes by Pedro Werneck <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10252/issue869780.py Tracker <[EMAIL PROTECTED]> ___

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-05-10 Thread Jonatas Oliveira
Jonatas Oliveira <[EMAIL PROTECTED]> added the comment: Btw, i ran all tests before write "works for me" message. __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue756982] mailbox should use email not rfc822

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: I think removing those old classes in 3.0 would be very sensible. Tracker <[EMAIL PROTECTED]> __

[issue2755] IDLE ignores module change before restart

2008-05-10 Thread Kurt B. Kaiser
Kurt B. Kaiser <[EMAIL PROTECTED]> added the comment: When you "open" a python file, exactly what steps are you taking? When you "close any combination of IDLE windows,( but not all)", are you leaving update.py open so you can "run" it? When you "run" a file, exactly what steps are you taking?

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: I add deprecated warnings symtable/_symtable in python 2.6 Added file: http://bugs.python.org/file10273/deprecated_symtable_on_py26.patch __ Tracker <[EMAIL PROTECTED]>

[issue756982] mailbox should use email not rfc822

2008-05-10 Thread Humberto Diogenes
Humberto Diogenes <[EMAIL PROTECTED]> added the comment: synx's patch wasn't applying cleanly and broke 2 maildir tests. I'm posting one with updated tests and documentation. Still need to get rid of rfc822 in test_mailbox, though. Question: mailbox.py has one section marked as "classes from t

[issue2813] No float formatting in PyString_FromFormat

2008-05-10 Thread duane Bailey
New submission from duane Bailey <[EMAIL PROTECTED]>: There appears to be most of the formatting options in the *printf family... except for the obvious %f. Why is this crucial option missing? -- components: Extension Modules, Interpreter Core messages: 66586 nosy: duaneb severity: norm

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Ah, I remember now. It was a special case for xmlrpclib to allow its Date objects to operate before 1900. _ Tracker <[EMAIL PROTECTED]> ___

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread David Fraser
Changes by David Fraser <[EMAIL PROTECTED]>: -- nosy: +davidfraser __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscri

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
David Fraser <[EMAIL PROTECTED]> added the comment: > Which version of Python are you using? I could have sworn we just fixed this problem in CVS a couple weeks ago. This was on the latest Python 2.6 svn... but looking at the py3k branch with viewsvn the code is definitely still there too... Th

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-05-10 Thread Jonatas Oliveira
Jonatas Oliveira <[EMAIL PROTECTED]> added the comment: The patch cfgparser_comments.patch works for me. I agree with Jeremy Thurgood about the issue 1714. -- nosy: +jonatasoliveira _ Tracker <[EMAIL PROTECTED]>

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-05-10 Thread Jonatas Oliveira
Jonatas Oliveira <[EMAIL PROTECTED]> added the comment: The cfgparser_doublequotes_r61014.patch works for me. I disagree wrapping a double quoted string with another double quote, it's more elegant using single quote like python's string behavior, but I don't know if is acceptable for a .ini f

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: The indentation still needs tweaking. You have only one tab where you should have two, and one line uses a mix of tabs and spaces. _ Tracker <[EMAIL PROTECTED]> __

[issue1348] httplib closes socket, then tries to read from it

2008-05-10 Thread Jeremy Hylton
Changes by Jeremy Hylton <[EMAIL PROTECTED]>: -- nosy: +jhylton __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2008-05-10 Thread Bruno Gola
Bruno Gola <[EMAIL PROTECTED]> added the comment: Should nested tuples in an except clause be a valid syntax? like: ... except ((ValueError, Exception), TypeError, (...)): pass I don't see any benefit and because of this behavior the implementation (in Python/errors.c and in the patch attach

[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning

2008-05-10 Thread Bruno Gola
Bruno Gola <[EMAIL PROTECTED]> added the comment: see http://bugs.python.org/issue2380, I think that it's related. the only reason i see for nested tuples to be valid syntax in an except clause was: x = ValueError y = (TypeError, IndexError) ... except (x, y): ... and this will not be valid in

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: Thanks, Adam -- requested changes made Added file: http://bugs.python.org/file10271/1174606-2.patch _ Tracker <[EMAIL PROTECTED]> _

[issue1187] pipe fd handling issues in subprocess.py on POSIX

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: I see that, on running your fix_fileno.py, nothing is output to /tmp/stdout.test. I don't necessarily see the link to your fix. Could you describe the problem and/or add comments to your patch to explain why these checks are made? --

[issue1858] Make .pypirc handle multiple servers

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Committed to trunk as r62998; thank you very much for the patch! -- keywords: -easy resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: Just note the error happens even without the try/except block inside the 'if' statement. -- nosy: +werneck __ Tracker <[EMAIL PROTECTED]> _

[issue2775] Implement PEP 3108

2008-05-10 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Sat, May 10, 2008 at 12:29 PM, Jesse Noller <[EMAIL PROTECTED]> wrote: > > Jesse Noller <[EMAIL PROTECTED]> added the comment: > > Should DocXMLRPCServer.py be moved into xmlrpc/ as well? Yes, and end up in the server module. That was just a

[issue2723] Truncate __len__() at sys.maxsize

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> added the comment: I think returning sys.{maxint,maxsize} in this case is a plain lie. That's not practicality, that's giving back false information. Barring drastic language changes (such as having objects representing "infinity" or "greater than" -

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: The above patch adds a set of tests for BaseHTTPServer, although the only tests actually written were those around the areas touched by the work done for this issue. __ Tracker <[EMAIL PROTECTED]>

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: Added handling for "Expect: 100-continue" header to BaseHTTPRequestHandler. By default, any request that has this header gets a 100 Continue response (with no other headers) before do_WHATEVER() is called. By overriding handle_expect_100(), y

[issue2775] Implement PEP 3108

2008-05-10 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Should DocXMLRPCServer.py be moved into xmlrpc/ as well? __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: new_buffersize returns a size_t. You should use SIZE_MAX instead (although I don't see it used elsewhere in CPython, so maybe there's portability problems.) The call to _PyString_Resize implicitly casts the size_t to Py_ssize_t. The check again

[issue2775] Implement PEP 3108

2008-05-10 Thread Jeremy Hylton
Jeremy Hylton <[EMAIL PROTECTED]> added the comment: I think we should move robotparser into the urllib package. Anyone disagree? Jeremy __ Tracker <[EMAIL PROTECTED]> __

[issue2775] Implement PEP 3108

2008-05-10 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: I'm working on xmlrpc/* changes __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list U

[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Martin: I'm sorry that this created work for you; but I had assumed that > distributing the new docs created so much work anyways that this > wouldn't matter too much :) The remaining issue is to get Tools/buildbot/buildmsi.bat to name the

[issue2812] Document property.getter/setter/deleter etc

2008-05-10 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: georg.brandl components: Documentation files: getter_setter_deleter_doc.patch keywords: patch nosy: benjamin.peterson, georg.brandl severity: normal status: open title: Document property.getter/setter/deleter etc Added file:

[issue2775] Implement PEP 3108

2008-05-10 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Here is a patch for the required changes to rename SocketServer.py - tests pass after I manually rename SocketServer.py locally. Again skipping the svn rename of the actual module. Doc updates included. Added file: http://bugs.python.org/file

[issue1858] Make .pypirc handle multiple servers

2008-05-10 Thread Tarek Ziadé
Tarek Ziadé <[EMAIL PROTECTED]> added the comment: yes that was just for conveniency, so I guess it can be removed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you please provide a test case then? The 3.0 code doesn't use RegQueryInfoKey, but RegQueryInfoKeyW. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1858] Make .pypirc handle multiple servers

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Is the only purpose of the '-r' in sys.argv code to avoid having to specify arguments multiple times when you're doing multiple commands on a line? Perhaps it would be acceptable to then just drop that bit of code completely; having to spec

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: Improved fix; this passes test_file on my system. -- keywords: +patch Added file: http://bugs.python.org/file10266/1174606.patch _ Tracker <[EMAIL PROTECTED]>

[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: This test passes -- is this ready to commit? I see a reduction from 1.9s to 1.5s for the test script in msg59715. -- nosy: +djmitche __ Tracker <[EMAIL PROTECTED]>

[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding

2008-05-10 Thread Paulo Eduardo Neves
New submission from Paulo Eduardo Neves <[EMAIL PROTECTED]>: Doctest doesn't obey the specified file encoding for unicode literals. I've put the minimum test case that demonstrate the error in the attached file. The program has the # -*- coding: utf-8 -*- as the first line and is saved in thi

[issue1174606] Reading /dev/zero causes SystemError

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: While it is a sensible fix for the signed/unsigned problem, David's patch still fails regrtest on my system (amd64), after OOM-killing random other processes :( Andrew's suggestion makes a lot of sense here. Does it make sense for new

[issue2798] Crash on non-Windows if Python runs from a non-ASCII directory

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> added the comment: The patch works for me, and I agree the test_xmlrpc is an xmlrpc issue. Perhaps unrelated to this issue, but I think it makes this whole unicode getargs situation fragile: I could not understand why the 'z' case (on the switch wher

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: Acting on a comment (with which I agree) that the "empty_elements_tag" wasn't such an obvious name, here's a (combined) patch which uses the name "short_empty_elements" (which was my original gut-feeling idea for the name, before I checked

[issue1410739] Add notes to the manual about `is` and methods

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: I agree it's not a good idea to be too much specific about this. The patch attached adds the following footnote to the 'is' operator: Due to automatic garbage-collection, free lists, and the dynamic nature of descriptors, you may notice unusua

[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm

2008-05-10 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Martin: I'm sorry that this created work for you; but I had assumed that distributing the new docs created so much work anyways that this wouldn't matter too much :) __ Tracker <[EMAIL PROTECTED]>

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-05-10 Thread Daniel Stutzbach
Daniel Stutzbach <[EMAIL PROTECTED]> added the comment: The bug is in both. On Sat, May 10, 2008 at 12:52 PM, Martin v. Löwis <[EMAIL PROTECTED]> wrote: > > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > > Is that for Python 2.5 or 3.0? > > -- > nosy: +loewis > > __

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: I have also added some unit tests to test the feature with the option turned on, and off - patch attached. Added file: http://bugs.python.org/file10262/test.test_sax.py.patch __ Tracker <[EMAIL PROTECTED]>

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment: The attached patch makes this new feature optional, by passing the "empty_element_tag" option to the constructor. -- nosy: +vhata Added file: http://bugs.python.org/file10261/xml.sax.saxutils.patch ___

[issue2488] Backport sys.maxsize to Python 2.6

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Oh, and I don't understand Raymond's comment: sys.maxsize isn't an alias for anything, but a new piece of information (the largest size of containers). Maybe that information isn't useful, or 2.6 doesn't always support containers up to that

[issue2488] Backport sys.maxsize to Python 2.6

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: djmitchell noticed this patch at the bug day -- should it be committed, or just closed? -- nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> ___

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10260/curselection_tupleint.diff Tracker <[EMAIL PROTECTED]> _

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10249/curselection_tupleint.diff Tracker <[EMAIL PROTECTED]> ___

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10259/curselection_tupleint.diff Tracker <[EMAIL PROTECTED]> ___

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I found some code using map(int, curselection..) directly, so this new patch fixes the problem related to returning None when nothing was selected. Added file: http://bugs.python.org/file10259/curselection_tupleint.diff _

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Is that for Python 2.5 or 3.0? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ ___ Pyt

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Are you aware of any code checking against empty tuple specifically to verify that nothing is selected ? Tracker <[EMAIL PROTECTED]> ___

[issue1858] Make .pypirc handle multiple servers

2008-05-10 Thread A.M. Kuchling
Changes by A.M. Kuchling <[EMAIL PROTECTED]>: -- assignee: -> akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Uns

[issue1625509] 'imp' documentation does not mention that lock is re-entrant

2008-05-10 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Applied to trunk to r62996. -- assignee: -> akuchling nosy: +akuchling resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> __

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: Neither I do, but the current version already returns an empty tuple. Since the map(int, curselection) idiom is widely used, changing to int is not likely to break any code, but returning None on empty selection is. ___

[issue1625509] 'imp' documentation does not mention that lock is re-entrant

2008-05-10 Thread Dustin J. Mitchell
Dustin J. Mitchell <[EMAIL PROTECTED]> added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file10258/1625509.patch _ Tracker <[EMAIL PROTECTED]> __

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-05-10 Thread Daniel Stutzbach
New submission from Daniel Stutzbach <[EMAIL PROTECTED]>: _winreg.EnumValue raises a WindowsError ("More data is available") if the registry data includes multibyte unicode characters. Inspecting PyEnumValue in _winreg.c, I believe I see the problem. The function uses RegQueryInfoKey to determi

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Which version of Python are you using? I could have sworn we just fixed this problem in CVS a couple weeks ago. -- nosy: +skip.montanaro _ Tracker <[EMAIL PROTECTED]>

[issue2775] Implement PEP 3108

2008-05-10 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: Here is a patch for the Queue module renaming - I can not easily do the actual svn rename to the lowercase queue myself (it's easier to do it with commit privs). Tests pass, documentation updated as well. -- keywords: +patch nosy: +jn

[issue2775] Implement PEP 3108

2008-05-10 Thread Mauricio Vieira
Changes by Mauricio Vieira <[EMAIL PROTECTED]>: -- nosy: +mbcvieira __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscr

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread Simon Cross
Simon Cross <[EMAIL PROTECTED]> added the comment: Patch adding documentation for datetime.totimestamp(...). Added file: http://bugs.python.org/file10256/add-datetime-totimestamp-method-docs.diff __ Tracker <[EMAIL PROTECTED]>

[issue2775] Implement PEP 3108

2008-05-10 Thread Juracy Filho
Juracy Filho <[EMAIL PROTECTED]> added the comment: I'm working on creating http package with httplib, BaseHTTPServer, CGIHTTPServer, SimpleHTTPServer, Cookie and cookielib -- nosy: +juracy __ Tracker <[EMAIL PROTECTED]>

[issue2776] urllib2.urlopen() gets confused with path with // in it

2008-05-10 Thread Adrianna Pinska
Adrianna Pinska <[EMAIL PROTECTED]> added the comment: Ordinarily, request.get_selector() returns the portion of the url after the host, and sel_host is None. However, if a proxy is set on the request, the request's host is set to the proxy host, get_selector() returns the original full url, and

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-10 Thread Neil Muller
Changes by Neil Muller <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-10 Thread Neil Muller
New submission from Neil Muller <[EMAIL PROTECTED]>: split with no sep specified will not return an empty string, whereas split with sep specified will. The attached patch updates the docstring to reflect this for str.split and unicode.split. -- files: split_docstring.diff keywords: pa

[issue1777412] Python's strftime dislikes years before 1900

2008-05-10 Thread David Fraser
David Fraser <[EMAIL PROTECTED]> added the comment: I have a patch for this, but I don't know which platforms have the problem. On Linux, strftime seems to work fine. Attaching the patch as a work in progress... -- keywords: +patch nosy: +davidfraser Added file: http://bugs.python.org/fi

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: _getints already call splitlist, so there isn't much point in calling _getints after calling splitlist. And the Tk documentation says an empty string should be returned in case there is no selection, but that is Tk. I don't see any problem in

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: I used the tuple from splitlist() in both cases. I'm not sure if it should return None on an empty selection since that is not documented anywhere. Added file: http://bugs.python.org/file10252/issue869780.py __

[issue2736] datetime needs and "epoch" method

2008-05-10 Thread Simon Cross
Simon Cross <[EMAIL PROTECTED]> added the comment: Attached a patch which adds a .totimetuple(...) method to datetime.datetime and tests for it. The intention is that the dt.totimetuple(...) method is equivalent to: mktime(dt.timetuple()) + (dt.microsecond / 100.0) -- keywords: +pat

[issue2722] os.getcwd fails for long path names on linux

2008-05-10 Thread Neil Blakey-Milner
Neil Blakey-Milner <[EMAIL PROTECTED]> added the comment: Here's a patch to add a test that fails with Python 2.5 on OS X, but passes with either of these patches. Added file: http://bugs.python.org/file10250/python-getcwd-test_longpathnames.patch __ Tracker <[E

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Changes by Pedro Werneck <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10248/issue869780_3.patch Tracker <[EMAIL PROTECTED]> ___

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Changes by Pedro Werneck <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10246/issue869780_2.6.patch Tracker <[EMAIL PROTECTED]> _

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Not sure what you did, but calling _getints didn't raise an exception here neither returned an empty string if no item was selected, it returned None. Added file: http://bugs.python.org/file10249/curselection_tupleint.diff __

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Changes by Pedro Werneck <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10248/issue869780_3.patch Tracker <[EMAIL PROTECTED]> _

[issue1153769] String interpolation needs PEP 237 update

2008-05-10 Thread Neil Muller
Neil Muller <[EMAIL PROTECTED]> added the comment: Update stdtypes.rst to note that %x, %X, %o can take signed values. Note that %u is consider obsolete (referring to PEP 237) Add a note on the length modifier description to clarify the meaning. -- keywords: +patch nosy: +Neil Muller A

[issue869780] curselection() in Tkinter.py should return ints

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: Just a bare self._getints will raise an exception with no item selected and an empty string returned, so I'm adding a patch to check for it and return an empty tuple in that case, or the tuple with ints. It's open for discussion if we should f

[issue2535] duplicate Misc.lower

2008-05-10 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: It hasn't changed that much, but here is a patch against py3k branch rev 62992 -- nosy: +gpolo Added file: http://bugs.python.org/file10245/remove_lowerdup.patch __ Tracker <[EMAIL PROTECTED]>

[issue2799] Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2008-05-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: IMO, it's better to correct API design errors early, rather than going through a deprecation process. Note that PyUnicode_AsString() is also different than its cousind PyString_AsString(). PyString_AsString() is mostly used to access th

[issue2535] duplicate Misc.lower

2008-05-10 Thread Bruno Gola
Bruno Gola <[EMAIL PROTECTED]> added the comment: The patch seems to be ok, worked here applying it to rev62992 (trunk). This "bug" is also on py3k, but Tkinter.py has changed. Could anyone create and send a patch for py3k? -- nosy: +brunogola __ Tracke

[issue2803] heapq.heappush called with too few arguments in sched.py

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> added the comment: +1 on the patch. IIRC, there won't be any more bugfix releases for 2.5.x, but, just in case: the patch doesn't work on 2.5 (though the issue lists it as an affected version - and it is!), so I'm uploading a patch for it (svn tag r2

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-05-10 Thread Jeremy Thurgood
Jeremy Thurgood <[EMAIL PROTECTED]> added the comment: This looks very much like a duplicate of issue 1714. Perhaps the two should be merged? -- nosy: +jerith _ Tracker <[EMAIL PROTECTED]>

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-10 Thread Neil Muller
Neil Muller <[EMAIL PROTECTED]> added the comment: Patches to test_posix.py to also test using file objects in os.fstat and such. Added file: http://bugs.python.org/file10243/test_posix.diff __ Tracker <[EMAIL PROTECTED]> __

[issue837234] Tk.quit and sys.exit cause Fatal Error

2008-05-10 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: I tried reproducing the bug with the info provided but neither case worked. Since it doesn't mention platform, I'm including the file in case anyone wants to try it on anything other than Linux/Python2.5. -- nosy: +werneck Added file:

  1   2   >