[issue4356] Add key argument to bisect module functions

2010-08-29 Thread Sean Reifschneider
Sean Reifschneider j...@tummy.com added the comment: This issue came up on #python IRC, and that combined with the number of times this has been duplicated makes me think that maybe the mention of the SortedCollection recipe should be a little more prominent. Perhaps either moved up by the

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: A simple IOError No such file or directory 'xxx' exception would be a lot more clear. Agreed, but the OpenSSL error reporting system looks too convoluted (or braindead) to easily allow such aliasing of errors. If you have an idea,

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- Removed message: http://bugs.python.org/msg115166 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9706 ___

[issue8266] tarfile library should support xz compression

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- superseder: - please support lzma compression as an extension and in the tarfile module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8266 ___

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2010-08-29 Thread Andreas Schlapsi
Changes by Andreas Schlapsi andreas.schla...@gmail.com: -- nosy: +Andreas.Schlapsi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8075 ___ ___

[issue1225769] Proposal to implement comment rows in csv module

2010-08-29 Thread florian-rathgeber
Changes by florian-rathgeber florian.rathge...@gmail.com: -- nosy: +florian-rathgeber ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1225769 ___

[issue1537721] csv module: add header row to DictWriter

2010-08-29 Thread florian-rathgeber
Changes by florian-rathgeber florian.rathge...@gmail.com: -- nosy: +florian-rathgeber ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1537721 ___

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The only idea which comes to mind is try to open() the file before calling load_cert_chain(). That would automatically also take care of permission errors, etc.. Not very clean, but... :-\ It's vulnerable to various issues such as race

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file18671/Py_UNICODE_strcat.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Py_UNICODE_strcat.patch: create Py_UNICODE_strcat() function. Py_UNICODE_strdup.patch: create Py_UNICODE_strdup() function. -- Added file: http://bugs.python.org/file18672/Py_UNICODE_strdup.patch

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-08-29 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On Windows, the initfunc of a C extension is exported twice, as seen here: test_distutils xxmodule.c xxmodule.obj : warning LNK4197: export 'initxx' specified multiple times; using first specification First export: pyport.h: #define

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fortunately errno was set. Patch in attachment introduces the following changes: === 1 === Before: ssl.wrap_socket(socket.socket(), server_side=1) Now: ssl.wrap_socket(socket.socket(), server_side=1) ValueError: certfile must be

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) ctx.wrap_socket(socket.socket(), server_side=1) ssl.SSLSocket object, fd=3, family=2, type=1, proto=0 I'm not sure how to raise ValueError(certfile must be specified) here as SSLContext class

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) ctx.wrap_socket(socket.socket(), server_side=1) ssl.SSLSocket object, fd=3, family=2, type=1, proto=0 I'm not sure how to raise ValueError(certfile must be specified) here as SSLContext class

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-29 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: OK, I still think this issue should be addressed, but here is a patch for the part we agree on: that decoding should not return any Unicode characters except ASCII. -- Added file:

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-29 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: The rest of the issue could also be straightforwardly addressed by adding bytes versions of the name lookup APIs. Attaching a patch which does that (applies on top of decode-strict-ascii.diff). -- Added file:

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-29 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Removed file: http://bugs.python.org/file18675/hostname-bytes-apis.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-08-29 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: Oops, forgot to refresh the last change into that patch. This should fix it. -- Added file: http://bugs.python.org/file18676/hostname-bytes-apis.diff ___ Python tracker

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: @Antoine: ok, thanks. This is now committed in r84352. See also r84351 which raises ValueError if non-zero flag argument is provided for sendall(). http://bugs.python.org/msg115166 was the original message at the top of this discussion

[issue4356] Add key argument to bisect module functions

2010-08-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: maybe the mention of the SortedCollection recipe should be a little more prominent. Thanks for the suggestion. Will look at moving the note higher on the page. -- components: +Documentation -Library (Lib) status:

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: @Antoine: ok, thanks. This is now committed in r84352. I don't think it's ok to test for the IOError message (No such file), because it comes from the OS and can therefore change from platform to platform. Instead, you should check the value

[issue9710] 2to3 could remove -*- coding: utf-8 -*-

2010-08-29 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: According to PEP8, Files using ASCII (or UTF-8, for Python 3.0) should not have a coding cookie. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 115191 nosy: flox priority: normal severity: normal status: open

[issue9710] 2to3 could remove -*- coding: utf-8 -*-

2010-08-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: They're also harmless. -- nosy: +benjamin.peterson priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9710 ___

[issue9710] 2to3 could remove -*- coding: utf-8 -*-

2010-08-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hmm, actually I don't see a rationale for this, even if it doesn't give Python any useful information, it serves that purpose for editors. -- nosy: +georg.brandl resolution: - rejected status: open - closed

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-08-29 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Tarek, I forgot to add you, sorry. I was thinking mainly about distutils, not distutils2. -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9709

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-29 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: By taking a look at ssl.py it seems that keyfile argument is ignored if certfile argument is not specified as well. Here's an extract of ssl.py code: class SSLSocket: def __init__(self, sock=None, keyfile=None, certfile=None,

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: You're right. Committed in r84355. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9706 ___

[issue9683] Dead code in py3k inspect module

2010-08-29 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl nosy: +georg.brandl resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9683 ___

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
Pablo Mouzo pablomo...@gmail.com added the comment: I'm attaching a new patch with the documentation updated. I agree with Georg that it'd be better to escape everything by default. Are there any good reasons not to? -- Added file: http://bugs.python.org/file18677/issue2830.diff

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
Changes by Pablo Mouzo pablomo...@gmail.com: Removed file: http://bugs.python.org/file18667/issue2830.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2830 ___

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-08-29 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: - brian.curtin components: +Extension Modules -Library (Lib) versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7877

[issue1625] bz2.BZ2File doesn't support multiple streams

2010-08-29 Thread Oliver Deppert
Oliver Deppert oliver.depp...@stud.tu-darmstadt.de added the comment: Dear all, first of all, thank you for the patch making multiple file-streams in bz2 available in python. Yesterday, I've tried to adapt the recent patch for python 3k to the actual python 2.7. Most of the hunks could be

[issue9703] default param values

2010-08-29 Thread vladimir
vladimir golubovic.vladimir...@gmail.com added the comment: On Sat, Aug 28, 2010 at 10:24 PM, Benjamin Peterson rep...@bugs.python.orgwrote: Benjamin Peterson benja...@python.org added the comment: Rest assured: it's expected behavior. Thank you for your cooperation. -- Added

[issue9703] default param values

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18668/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9703 ___

[issue9703] default param values

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18678/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9703 ___