[issue2804] Integer right shift raises OverflowError when second operand is large

2008-05-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I still don't think the improvement in observable behavior is worth the cost of additional code (and as Alexander observes, the patch in file10234 is incorrect in boundary cases). __ Tracker [EMAIL PROTECTED]

[issue2808] asynchat forgets packets when push is called from a thread

2008-05-10 Thread xix xeaon
New submission from xix xeaon [EMAIL PROTECTED]: okay, my first bug post, hope I do it right. if you push more than 512 bytes (issue2073) from a thread then only the first packet will be sent, all other packets will be forgotten. the remaining packets will be sent when something else happens,

[issue2742] example code does not work

2008-05-10 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: This also affects Python 2.4 and 2.6 on Linux systems. Bug http://bugs.python.org/issue2763 is a duplicate of this one. The issue is that socketmodule.c doesn't convert empty strings to NULLs before passing hptr through to the underlying system

[issue2742] example code does not work

2008-05-10 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: Attached a patch to correct the getaddrinfo(...) documentation and the code example in socket.rst. -- keywords: +patch Added file: http://bugs.python.org/file10237/getaddrinfo-doesnt-treat-empty-string-as-none.diff

[issue2804] Integer right shift raises OverflowError when second operand is large

2008-05-10 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Fair enough. Closing as won't fix. -- resolution: - wont fix status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2804 __

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2008-05-10 Thread Simon Cross
Simon Cross [EMAIL PROTECTED] added the comment: cElementTree.ElementTree is a copy of ElementTree.ElementTree with the .parse(...) method replaced, so the original patch for ElementTree should fix cElementTree too. The copying of the ElementTree class into cElementTree happens in the call to

[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: The attached patch changes most functions in posixmodule which require a filedescriptor to use PyObjectAsDescriptor There are a few cases, where I'm not certain of the usefulness of changing the functions to support objects with fileno that I've

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-05-10 Thread Pedro Werneck
Changes by Pedro Werneck [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9499/issue_2118_smtplib.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2118 __ ___

[issue2805] 2to3 doesn't correct divisions

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: +1 for going ahead and writing a fixer. -- nosy: +rbp __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2805 __

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2008-05-10 Thread Tarek Ziadé
Tarek Ziadé [EMAIL PROTECTED] added the comment: I think this should also be fixed in 2.5 -- versions: +Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2562 __

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

2008-05-10 Thread Neil Blakey-Milner
Changes by Neil Blakey-Milner [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10241/python-getcwd-malloconly.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2722 __

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina [EMAIL PROTECTED] added the comment: I'm working on removing symtable/_symtable -- nosy: +andrewsmedina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __

[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:

[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] http://bugs.python.org/issue2768

[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] http://bugs.python.org/issue1524825

[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

[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 __ Tracker

[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 the

[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]

[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

[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

[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] http://bugs.python.org/issue869780 ___

[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]: Removed file: http://bugs.python.org/file10248/issue869780_3.patch Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___

[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

[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:

[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

[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

[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:

[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:

[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] http://bugs.python.org/issue2809 __

[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

[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] http://bugs.python.org/issue2775

[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] http://bugs.python.org/issue2736

[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:

[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 determine

[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] http://bugs.python.org/issue1625509

[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 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] http://bugs.python.org/issue1625509

[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] http://bugs.python.org/issue1858 __ ___ Python-bugs-list mailing list

[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] http://bugs.python.org/issue869780

[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] http://bugs.python.org/issue2810 __ ___

[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] http://bugs.python.org/issue869780

[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] http://bugs.python.org/issue869780

[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] http://bugs.python.org/issue869780

[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] http://bugs.python.org/issue2488

[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

[issue1343] XMLGenerator: nice empty/ 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 __

[issue1343] XMLGenerator: nice empty/ 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]

[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

[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]

[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 unusual

[issue1343] XMLGenerator: nice empty/ 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 the

[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 where

[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

[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 this

[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] http://bugs.python.org/issue1792

[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] http://bugs.python.org/issue1174606

[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

[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] http://bugs.python.org/issue2810 __

[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] http://bugs.python.org/issue1858 __ ___

[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:

[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

[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] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list

[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] http://bugs.python.org/issue2775 __

[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

[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] http://bugs.python.org/issue2775 __ ___

[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(), you

[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]

[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 an

[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] http://bugs.python.org/issue2378 __

[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] http://bugs.python.org/issue1858

[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?

[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

[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

[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] http://bugs.python.org/issue1348 __ ___ Python-bugs-list mailing list Unsubscribe:

[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] http://bugs.python.org/issue1174606

[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

[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... The

[issue2736] datetime needs and epoch method

2008-05-10 Thread David Fraser
Changes by David Fraser [EMAIL PROTECTED]: -- nosy: +davidfraser __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2736 __ ___ Python-bugs-list mailing list Unsubscribe:

[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] http://bugs.python.org/issue1777412

[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:

[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 the

[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]

[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? When you

[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] http://bugs.python.org/issue756982

[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] http://bugs.python.org/issue1714 __ ___

[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] http://bugs.python.org/issue869780 ___

[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 and

[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] http://bugs.python.org/issue1174606

[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] http://bugs.python.org/issue2775 __

[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]

[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] http://bugs.python.org/issue1874 __ ___ Python-bugs-list mailing list

[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

[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 classes

[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] http://bugs.python.org/issue2814 __

[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

[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] http://bugs.python.org/issue756982

[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 [EMAIL

[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

  1   2   >