[issue8668] add a 'develop' command

2010-08-29 Thread Éric Araujo
Éric Araujo added the comment: One part of develop that we could add is the creation of a .pth file in a directory on sys.path (with Python >= 2.6, --user gives that for free). IMNSHO, this should be implemented as an option to the install_lib* command, named --link-only or something better.

[issue9703] default param values

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18678/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9703] default param values

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file18668/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9703] default param values

2010-08-29 Thread vladimir
vladimir added the comment: On Sat, Aug 28, 2010 at 10:24 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > Rest assured: it's expected behavior. > > Thank you for your cooperation. -- Added file: http://bugs.python.org/file18678/unnamed __

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

2010-08-29 Thread Oliver Deppert
Oliver Deppert 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 easy adapted by editing just one ore t

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-08-29 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> brian.curtin components: +Extension Modules -Library (Lib) versions: -Python 2.7 ___ Python tracker ___ ___

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
Changes by Pablo Mouzo : Removed file: http://bugs.python.org/file18667/issue2830.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2830] Copy cgi.escape() to html

2010-08-29 Thread Pablo Mouzo
Pablo Mouzo 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 _

[issue9683] Dead code in py3k inspect module

2010-08-29 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> georg.brandl nosy: +georg.brandl resolution: -> accepted ___ Python tracker ___ ___ Python-

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You're right. Committed in r84355. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[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' : 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, server_

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-08-29 Thread Stefan Krah
Stefan Krah added the comment: Tarek, I forgot to add you, sorry. I was thinking mainly about distutils, not distutils2. -- nosy: +tarek ___ Python tracker ___ __

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

2010-08-29 Thread Georg Brandl
Georg Brandl 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 ___ Pyt

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

2010-08-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: They're also harmless. -- nosy: +benjamin.peterson priority: normal -> low ___ Python tracker ___ ___

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

2010-08-29 Thread Florent Xicluna
New submission from Florent Xicluna : 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 title: 2to3 could remove "

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou 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 of the "er

[issue4356] Add "key" argument to "bisect" module functions

2010-08-29 Thread Raymond Hettinger
Raymond Hettinger 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: closed -> open __

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 which I accidentally

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

2010-08-29 Thread David Watson
David Watson 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

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

2010-08-29 Thread David Watson
Changes by David Watson : Removed file: http://bugs.python.org/file18675/hostname-bytes-apis.diff ___ Python tracker ___ ___ Python-bugs-list m

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

2010-08-29 Thread David Watson
David Watson 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: http://bugs.python.org/file18675/hostname-b

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

2010-08-29 Thread David Watson
David Watson 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: http://bugs.python.org/file18674/decode-strict-ascii.diff __

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >>> ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) > >>> ctx.wrap_socket(socket.socket(), server_side=1) > > >>> > > I'm not sure how to raise ValueError("certfile must be specified") > here as SSLContext class doesn't store certfile information, at least > at P

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: >>> ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23) >>> ctx.wrap_socket(socket.socket(), server_side=1) >>> I'm not sure how to raise ValueError("certfile must be specified") here as SSLContext class doesn't store certfile information, at least at Python level.

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 specified for s

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-08-29 Thread Stefan Krah
New submission from Stefan Krah : 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 PyMODINIT_FUNC __declspec(

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-29 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-29 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file18671/Py_UNICODE_strcat.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue9706] ssl errors checking

2010-08-29 Thread Antoine Pitrou
Antoine Pitrou 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 conditions (for

[issue1537721] csv module: add header row to DictWriter

2010-08-29 Thread florian-rathgeber
Changes by florian-rathgeber : -- nosy: +florian-rathgeber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1225769] Proposal to implement comment rows in csv module

2010-08-29 Thread florian-rathgeber
Changes by florian-rathgeber : -- nosy: +florian-rathgeber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2010-08-29 Thread Andreas Schlapsi
Changes by Andreas Schlapsi : -- nosy: +Andreas.Schlapsi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8266] tarfile library should support xz compression

2010-08-29 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: -> please support lzma compression as an extension and in the tarfile module ___ Python tracker ___

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- Removed message: http://bugs.python.org/msg115166 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9706] ssl errors checking

2010-08-29 Thread Giampaolo Rodola'
Giampaolo Rodola' 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, don't hesitat

[issue4356] Add "key" argument to "bisect" module functions

2010-08-29 Thread Sean Reifschneider
Sean Reifschneider 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 method list, or s