[issue2804] Integer right shift raises OverflowError when second operand is large
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] http://bugs.python.org/issue2804 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2808] asynchat forgets packets when push is called from a thread
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, like a new connection is opened, or more input data is read. it's also sent when the select times out (default 30 seconds) and starts over. if push is called twice then the first two packets will be sent but the rest will be forgotten. if this problem arises in your code then you can easily fix it with a 0 second timeout for loop(), or preferably something like 0.0001 so that the cpu stays calm ;) you should be able to reproduce this bug with the attached file, just run it and then connect with netcat like: echo \n | nc localhost 1100 netcat will print almost 6 and a half lines of x and then the rest after 5 seconds (30 seconds is boring..) or if you have wireshark up then you'll see it easily. and would someone please apply all the patches for this module! =) -- components: Library (Lib) files: asyn-delay.py messages: 66510 nosy: xix xeaon severity: normal status: open title: asynchat forgets packets when push is called from a thread type: behavior versions: Python 2.5, Python 2.6 Added file: http://bugs.python.org/file10236/asyn-delay.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2808 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2742] example code does not work
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 getaddrinfo(...). The question is whether to fix the documentation and examples or the socketmodule.c code. -- nosy: +hodgestar versions: +Python 2.4, Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2742 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2742] example code does not work
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 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2742 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2804] Integer right shift raises OverflowError when second operand is large
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2746] ElementTree ProcessingInstruction uses character entities in content
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 boostrap in the init_elementtree() function at the bottom of _elementtree.c. -- nosy: +hodgestar __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2746 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor
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 left untouched. These are: tcgetpgrp tcsetpgrp closerange dup2 fdopen isatty The extension to these cases is trivial, though. -- keywords: +patch nosy: +Neil Muller Added file: http://bugs.python.org/file10239/posixmodule.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2768 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2805] 2to3 doesn't correct divisions
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2722] os.getcwd fails for long path names on linux
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue837234] Tk.quit and sys.exit cause Fatal Error
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: http://bugs.python.org/file10242/issue837234.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue837234 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1524825] ConfigParser: accept leading whitespace on options+comments
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2803] heapq.heappush called with too few arguments in sched.py
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 r252). I started writing a test for it, but it's such an obvious and trivial patch that I think it's unnecessary. -- nosy: +rbp Added file: http://bugs.python.org/file10244/sched.py.patch-r252 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2803 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2535] duplicate Misc.lower
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 [EMAIL PROTECTED] http://bugs.python.org/issue2535 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2799] Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()
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 char* buffer used by the string object in order to change it, e.g. by first constructing a new PyString object and then filling it in by accessing the internal char* buffer directly. Doing the same with PyUnicode_AsString() will not work. What's worse: direct changes would go undetected, since the UTF8 PyString object is held by the PyUnicode object internally. Even if you just use PyUnicode_AsString() for reading and get the size information from somewhere else, the API doesn't make sure that the PyUnicode object doesn't have embedded 0 code points (which PyString_AsString() does). PyUnicode_AsString() would have to use PyString_AsString() for this instead of the PyString_AS_STRING() macro. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2799 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2535] duplicate Misc.lower
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] http://bugs.python.org/issue2535 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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 follow Tk documentation strictly and return an empty string if no item selected, or keep consistency with Python and other Tkinter parts and always return a tuple. -- keywords: +patch nosy: +werneck Added file: http://bugs.python.org/file10246/issue869780_2.6.patch Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1153769] String interpolation needs PEP 237 update
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 Added file: http://bugs.python.org/file10247/stdtypes.tst.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1153769 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Pedro Werneck [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10248/issue869780_3.patch Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Pedro Werneck [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10248/issue869780_3.patch Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2722] os.getcwd fails for long path names on linux
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 [EMAIL PROTECTED] http://bugs.python.org/issue2722 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2736] datetime needs and epoch method
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: +patch nosy: +hodgestar Added file: http://bugs.python.org/file10251/add-datetime-totimestamp-method.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2736 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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 returning None instead of '' here in Python. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1777412] Python's strftime dislikes years before 1900
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/file10253/strftime-pre-1900.patch _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1777412 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')
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: patch messages: 66536 nosy: Neil Muller severity: normal status: open title: string docstring doesn't mention that ' '.split() != ' '.split(' ') Added file: http://bugs.python.org/file10254/split_docstring.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2809 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2776] urllib2.urlopen() gets confused with path with // in it
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 sel_host is the host from the original url (and different to the host set on the request). This bug is only triggered if the double slash comes directly after the host and there is no proxy set on the request. do_request_ does not check what get_selector() is returning, so the output is passed through splithost even when this is not necessary, and in this particular case it causes undesirable behaviour. My patch causes do_request_ only to attempt to extract the host from get_selector() if the proxy has been set. -- keywords: +patch nosy: +confluence Added file: http://bugs.python.org/file10255/double_slash_after_host.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2776 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2736] datetime needs and epoch method
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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: +jnoller Added file: http://bugs.python.org/file10257/queue_rename.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 the maximum data and key name sizes to pass to RegEnumValue. Unfortunately, RegQueryInfoKey returns the size in number of unicode characters, while RegEnumValue expects a size in bytes. This is OK if all the values are ASCII, but it fails if there are any multibyte unicode characters. I believe it would be sufficient to multiply the sizes by 4, since that's the maximum width of a unicode character. The bug exists in at least Python 2.5 and Python 3.0 (based on source code inspection). References: RegEnumValue: http://msdn.microsoft.com/en-us/library/ms724865(VS.85).aspx RegQueryInfoKey: http://msdn.microsoft.com/en-us/library/ms724902(VS.85).aspx -- components: Windows messages: 66542 nosy: stutzbach severity: normal status: open title: _winreg.EnumValue fails when the registry data includes multibyte unicode characters type: behavior versions: Python 2.5, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1625509] 'imp' documentation does not mention that lock is re-entrant
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1625509] 'imp' documentation does not mention that lock is re-entrant
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1858] Make .pypirc handle multiple servers
Changes by A.M. Kuchling [EMAIL PROTECTED]: -- assignee: - akuchling __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
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 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10259/curselection_tupleint.diff Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10249/curselection_tupleint.diff Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Guilherme Polo [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10260/curselection_tupleint.diff Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2488] Backport sys.maxsize to Python 2.6
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2488] Backport sys.maxsize to Python 2.6
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 limit, but sys.maxsize doesn't seem to be merely a renaming of something. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2488 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1343] XMLGenerator: nice empty/ elements
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 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1343 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1343] XMLGenerator: nice empty/ elements
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] http://bugs.python.org/issue1343 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 __ __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2810 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm
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] http://bugs.python.org/issue2800 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1410739] Add notes to the manual about `is` and methods
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 behaviour in certain combinations of :keyword:`is` operator, like those involving identity comparisons between class and instancemethods, and free instances in the same expression. Check their docs for more info. -- nosy: +werneck Added file: http://bugs.python.org/file10263/issue1410739.patch _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1410739 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1343] XMLGenerator: nice empty/ elements
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 W3C standard and found that they called them Empty-Elements tags) instead. Added file: http://bugs.python.org/file10264/short_empty_tag.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1343 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2798] Crash on non-Windows if Python runs from a non-ASCII directory
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 this patch applies, starting on line 879 on the patched file) does a PyString_Check(arg) and a PyUnicode_Check(arg), while the corresponding section on case 's' (line 813) only does PyUnicode_Check(arg). Is this really an inconsistency? Maybe this should go into an issue to cleanup this switch, according to the comment at its beginning: /* XXX WH! 's', 'y', 'z', 'u', 'Z', 'e', 'w', 't' codes all need to be cleaned up! */ -- nosy: +rbp __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2798 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
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_buffersize to return (PY_SSIZE_T_MAX+1) in this case, to trigger an overflow (in addition to David's patch)? -- nosy: +djmitche _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1174606 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding
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 encoding. My computer environment is configured as iso8859-1. Doctest ignores the file encoding specification and interprets the u'á' as u'á' (the utf-8 text decoded as iso8859-1 ) I've reproduced this error in python 2.5 in linux and windows. This is the output of the program below that runs the function normalize from inside doctest and directly from python. They show different results. ** File doctesteerror.py, line 7, in __main__.normalize Failed example: normalize(u'á') Expected: u'b' Got: u'\xc3\xa1' ** 1 items had failures: 1 of 1 in __main__.normalize ***Test Failed*** 1 failures. without doctest === b -- components: Library (Lib) files: doctesteerror.py messages: 66559 nosy: neves severity: normal status: open title: doctest doesn't treat unicode literals as specified by the file declared encoding type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file10265/doctesteerror.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2811 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1792] o(n*n) marshal.dumps performance for largish objects with patch
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1858] Make .pypirc handle multiple servers
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 specify 'register -r pypi upload -r pypi' isn't the worst thing in the world, and it avoids worrying about oddball corner cases like 'setup.py newcommand -r something-different upload -r pypi'. So, I'd suggest just taking that code out, and then committing the patch. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1858] Make .pypirc handle multiple servers
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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/file10267/socketserver_rename.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm
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 generated hhp file correctly. Regards, Martin __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2800 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
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 against PY_SSIZE_T_MAX does make this safe, but a comment would make it more obvious. The latest patch uses spaces for indentation, which don't match up with the existing tabs. -- nosy: +Rhamphoryncus _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1174606 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
Jesse Noller [EMAIL PROTECTED] added the comment: Should DocXMLRPCServer.py be moved into xmlrpc/ as well? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1491] BaseHTTPServer incorrectly implements response code 100
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 can reject incoming requests instead of sending a 100 Continue if you so desire. Refactoring as per comments above was also performed. Note: This patch changes the default behaviour in the case where both the client and the server claim to support HTTP/1.1 from doing nothing in the case of an Expect: 100-continue header on the request to sending a 100 Continue response and then completing the request as normal. -- keywords: +patch nosy: +jerith Added file: http://bugs.python.org/file10269/BaseHTTPServer_continue.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1491] BaseHTTPServer incorrectly implements response code 100
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] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 oversight on my part. The PEP has been updated. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2378] UnboundLocalError when trying to raise exceptions inside execfile
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1858] Make .pypirc handle multiple servers
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1187] pipe fd handling issues in subprocess.py on POSIX
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? -- nosy: +djmitche __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1187 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning
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 py3k, as noticed here. -- nosy: +brunogola __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2345 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions
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 attached) will use recursive function. I think that any objects inside a tuple in an except clause should be treated equally (as an object), even a tuple, so the except clause above should be an error in py3k and should produce a warning because the list objects does not inherits BaseException. Please, see my comment in http://bugs.python.org/issue2345, it is related to this issue. -- nosy: +brunogola __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2380 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1348] httplib closes socket, then tries to read from it
Changes by Jeremy Hylton [EMAIL PROTECTED]: -- nosy: +jhylton __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1348 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.
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 file. PS: Like Jeremy Thurgood said in msg66523, this is almost the same of issue 1524825. -- nosy: +jonatasoliveira __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1714 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1777412] Python's strftime dislikes years before 1900
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 relevant commit seems to be r30224 in 2002: I give up: unless I write my own strftime by hand, datetime just can't be trusted with years before 1900, so now we raise ValueError if a date or datetime or datetimetz .strftime() method is called with a year before 1900. Of course I'm not dealing with any of this in the attached patch, but then I don't have the information on which platforms have the problem... but according to the above writing strftime by hand would be the only solution... _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1777412 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2736] datetime needs and epoch method
Changes by David Fraser [EMAIL PROTECTED]: -- nosy: +davidfraser __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2736 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1777412] Python's strftime dislikes years before 1900
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2813] No float formatting in PyString_FromFormat
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: normal status: open title: No float formatting in PyString_FromFormat type: feature request versions: Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2813 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue756982] mailbox should use email not rfc822
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 original module (for backward compatibility). Shouldn't these be removed in py3k? -- nosy: +hdiogenes Added file: http://bugs.python.org/file10272/mailbox.py.patch2 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue756982 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2755] IDLE ignores module change before restart
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 add files to the tracker, please use plain text files so they can be opened in a browser, without firing up Office! -- nosy: +kbk __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2755 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue756982] mailbox should use email not rfc822
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 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue869780] curselection() in Tkinter.py should return ints
Changes by Pedro Werneck [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10252/issue869780.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue869780 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1581906] test_sqlite fails on OS X if test_ctypes is run
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 now the test works fine. -- nosy: +hdiogenes title: test_sqlite fails on OSX G5 arch if test_ctypes is run - test_sqlite fails on OS X if test_ctypes is run _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1581906 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1174606] Reading /dev/zero causes SystemError
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 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages
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] http://bugs.python.org/issue1874 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages
Changes by Vinicius Baggio Fuentes [EMAIL PROTECTED]: -- nosy: +vinibaggio __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1874 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1491] BaseHTTPServer incorrectly implements response code 100
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 order in which header fields with differing field names are received is not significant. So, I dislike these (and similar) statements in the patch: +self.assertTrue(result[1].startswith('Server: ')) +self.assertTrue(result[2].startswith('Date: ')) +self.assertTrue(result[3].startswith('Content-Type: ')) I think it would be better to say this: +self.assertEqual(sum(r.startswith('Server: ') for r in result[1:-1]), 1) +self.assertEqual(sum(r.startswith('Date: ') for r in result[1:-1]), 1) +self.assertEqual(sum(r.startswith('Content-Type: ') for r in result[1:-1]), 1) or even this: +# Verify that certain message headers occur exactly once. +for fieldName in 'Server: ', 'Date: ', 'Content-Type: ': +self.assertEqual(sum(r.startswith(fieldName) for r in result[1:-1]), 1) (Note that in test_with_continue_1_1, you'd need to say result[2:-1].) On Sat, May 10, 2008 at 2:34 PM, Jeremy Thurgood [EMAIL PROTECTED] wrote: 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 can reject incoming requests instead of sending a 100 Continue if you so desire. Refactoring as per comments above was also performed. Note: This patch changes the default behaviour in the case where both the client and the server claim to support HTTP/1.1 from doing nothing in the case of an Expect: 100-continue header on the request to sending a 100 Continue response and then completing the request as normal. -- keywords: +patch nosy: +jerith Added file: http://bugs.python.org/file10269/BaseHTTPServer_continue.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2814] Remove old classes from mailbox module
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 in 3.0 would be very sensible. I've attached a patch to do that, removing the only test that broke (test_unix_mbox). -- components: Library (Lib) files: mailbox-remove_deprecated_classes.patch keywords: patch messages: 66596 nosy: akuchling, hdiogenes severity: normal status: open title: Remove old classes from mailbox module versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file10276/mailbox-remove_deprecated_classes.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2814 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2814] Remove old classes from mailbox module
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 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1491] BaseHTTPServer incorrectly implements response code 100
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 legitimate, but I'm not going to tackle it tonight. Added file: http://bugs.python.org/file10278/BaseHTTPRequestHandlerTestCase.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1491 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue756982] mailbox should use email not rfc822
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 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
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 PROTECTED] http://bugs.python.org/issue2775 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2815] Python Manuals: horizontal scrolling broken
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 overflow. Example: LibMan.StringServices.CommonOps.FormatSyntax.FormatSpecMiniLang type ::= b | | % However, when I move the bar right, moving the text left, the newly visible part of the window coming in from the right is dark blue green instead of white and the text is a barely distinguishable dark gray instead of black. I can only read the result with a magnifying glass. -- assignee: georg.brandl components: Documentation messages: 66600 nosy: georg.brandl, tjreedy severity: normal status: open title: Python Manuals: horizontal scrolling broken versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2815 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com