[issue11269] cgi.FieldStorage forgets to unquote field names when parsing multipart/form-data

2011-02-21 Thread R. David Murray
R. David Murray added the comment: Thanks for doing the research. As far as I know we've never had a request to support RFC2047 in FieldStorage, so presumably no browsers actually generate it. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: So on my system, that 'while' loop is executed once (put a printf() after the bug and len adjustments and it was never hit). -- ___ Python tracker _

[issue11133] inspect.getattr_static code execution

2011-02-21 Thread Andreas Stührk
Andreas Stührk added the comment: > The patch is not sufficient - instances may have a class member "__dict__" > whilst still having an instance __dict__. Sure, but I don't think there is a way how you can access the instance __dict__ in that case inside Python code. At least I can't think of

[issue11133] inspect.getattr_static code execution

2011-02-21 Thread Andreas Stührk
Andreas Stührk added the comment: Updated patch. -- Added file: http://bugs.python.org/file20830/inspect_issue_11133_v2.patch ___ Python tracker ___

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-21 Thread Andres Riancho
New submission from Andres Riancho : Buggy Code: """ def http_error_302(self, req, fp, code, msg, headers): # Some servers (incorrectly) return multiple Location headers # (so probably same goes for URI). Use first header. if 'location' in headers: newurl

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Andres, the HTTP Response is sent the xxx_error_xxx method when it is handled by RedirectHandler. Does the below code not work for you in case? I am unable to see the problem here (and also this piece of code is present from 2004!) I am inclined to mark this

[issue10992] tests failing when run under coverage

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: 3.3 in r88494 -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Ned Deily
Ned Deily added the comment: >>> from test.support import _4G >>> _4G 4294967296 >>> mapping.size() 4294967300 pbuf.len = 4294967300, len = 4294967300 UINT_MAX = 4294967295 -- ___ Python tracker _

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: r88496 for 3.3 r88497 for 3.2 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte
Suresh Kalkunte added the comment: Yes, the easier fix is to change build.conf file to not use '\'. However, > on Linux `glob.glob('\\')` == `[]` so nothing is actually added. > OTOH on Windows `glob.glob('\\')` == `['\\']` is more definite compared to > They work on Linux by mere coinciden

[issue11074] fix tokenize so it can be reloaded

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: r88498 for 3.3 r88499 for 3.2 -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-21 Thread Ray.Allen
Ray.Allen added the comment: Thanks haypo! Here the updated patch, following your comments. -- type: -> behavior Added file: http://bugs.python.org/file20831/issue11246.diff ___ Python tracker __

[issue11246] PyUnicode_FromFormat("%V") decodes the byte string from ISO-8859-1

2011-02-21 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file20818/issue11246.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: Does it matter that _4G < UINT_MAX? -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-

[issue11281] smtplib: add ability to bind to specific source IP address/port

2011-02-21 Thread Paulo Scardine
New submission from Paulo Scardine : In smtplib there is now way to bind to an specific source address on a machine with multiple interfaces; also, there no way to control the source port for the connection. Since 2.7, socket.create_connection accepts a source_address parameter, a (host, port

[issue11282] unittest document not keep consist with code

2011-02-21 Thread Ray.Allen
New submission from Ray.Allen : r88451: Remove unittest methods scheduled for removal in 3.3 This commit remove assertSameElements() and assertDictContainsSubset(). But shouldn't some modification be done in the unittest library documentation? I wonder if we should remove the docs about the tw

[issue9523] Improve dbm modules

2011-02-21 Thread Ray.Allen
Ray.Allen added the comment: Sine r88451 removed unittest's assertSameElements() method, I need to updated my patch to fit it. So here it is. -- Added file: http://bugs.python.org/file20832/issue9523.diff ___ Python tracker

[issue9523] Improve dbm modules

2011-02-21 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file20783/issue_9523.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10829] PyUnicode_FromFormatV() bugs with "%" and "%%" format strings

2011-02-21 Thread Ray.Allen
Ray.Allen added the comment: > Well, the main problem is that there are 3 different codes to parse the > format string, and each code is different... Attached patch factorizes the > code: create one subfunction parse_format_flags(). It fixes also this issue > and prepares the work to fix #108

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte
Suresh Kalkunte added the comment: lukasz.langa, confirming the difference in return values for glob.glob() on Win32/Cygwin vs. Linux as the following results show: F1() ret_val1 F2(ret_val1) ret_val2 -- \\\ Cygwin /// -- string.sp

[issue11199] urllib hangs when closing connection

2011-02-21 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > rg3 added the comment: > > I have to correct myself. I applied the patch manually to my Python 2.6 > installation. In Python 2.6, the line you moved is number 961, and I did the > same change. OK. For information, you can apply it using the Unix "

<    1   2