[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-06 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Like I said, I dont know much about named pipes and im not even sure thats how they are intended to work in this context. IE: if one process is listening, can another listen on that named pipe as well? Under Unix, you'd get a

[issue9993] shutil.move fails on symlink source

2012-01-06 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Oh sorry, I didn't look into the doc patch. I unified both into one patch and added the versionchanged tag and also updated the docstring of shutil.move. -- Added file: http://bugs.python.org/file24149/shutil_move_symlinks.patch

[issue13703] Hash collision security issue

2012-01-06 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: I agree. +1 for strings. -0 for numbers. This might cause problems with dict subclasses and the like, so I'm -1 on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703

[issue13703] Hash collision security issue

2012-01-06 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Without the context, that last message didn't make much sense. I agree with Terry that we should copy Perl and Ruby (for strings). I'm -1 on hash() returning a different value than dict uses internally. --

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-06 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Some review comments. Instead of doing the inline unquote like this - -auth = base64.b64encode(user_passwd).strip() +auth = base64.b64encode(unquote(user_passwd)).strip() It is better to do the explicitly above the

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-06 Thread Michael Kesper
New submission from Michael Kesper mkes...@schokokeks.org: http://docs.python.org/library/string.html#format-specification-mini-language mentions: Changed in version 2.7: Added the ',' option (see also PEP 378). PEP 378 tells me: The ',' option is defined as shown above for types 'd', 'e',

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Following comments by Martin and Victor, here is next version: termsize.diff.4 Changes: - just check for defined(MS_WINDOWS) and rely on windows.h. - rename query_terminal_size to get_terminal_size_raw This way it should be clearer that

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le vendredi 06 janvier 2012 à 02:18 +, Phill a écrit : Phill beer...@gmail.com added the comment: Rather than listening on a socket, listening on a named pipe eg: address = (r'\\.\pipe\Test', 'AF_PIPE') listener = Listener(*address)

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Before continuing down the road of adding randomness to hash functions, please have a good read of the existing dictionary implementation: Major subtleties ahead: Most hash schemes depend on having a good hash function, in the sense of

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Demo patch implementing the collision limit idea for Python 2.7. -- Added file: http://bugs.python.org/file24151/hash-attack.patch ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: The hash-attack.patch solves the problem for the integer case I posted earlier on and doesn't cause any problems with the test suite. Traceback (most recent call last): File stdin, line 1, in module KeyError: 'too many hash collisions' It

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Stupid email interface again... here's the full text: The hash-attack.patch solves the problem for the integer case I posted earlier on and doesn't cause any problems with the test suite. d = dict((x*(2**64 - 1), hash(x*(2**64 - 1))) for x

[issue13041] argparse: terminal width is not detected properly

2012-01-06 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: New version to use after #13609 is implemented: patch2.diff -- Added file: http://bugs.python.org/file24152/patch2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13041

[issue13719] bdist_msi upload fails

2012-01-06 Thread Ralf Schmitt
New submission from Ralf Schmitt python-b...@systemexit.de: Running setup.py bdist_msi upload fails with something like: c:\Python27\python.exe setup.py bdist_msi upload running bdist_msi running build running build_ext installing to build\bdist.win-amd64\msi running install_lib creating

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (oops, hadn't seen Charles-François's answer before replying) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8184 ___

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: One more comment on $COLUMNS overriding the actual terminal size: Zbyszek, I just looked at [1] and I disagree that the environment variable should have higher precedence. In fact, I believe it should have lower precedence, and should be

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Some remarks on the Windows implementation in termsize.diff.4: - On Windows, the C runtime always sets fileno(stdout) to 1, so hardcoded values are OK. But on Unix, I'm quite sure that embedded interpreters (mod_python?) sometimes

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-01-06 Thread Zbyszek Szmek
New submission from Zbyszek Szmek zbys...@in.waw.pl: % cat test_argparse_narrow.py import argparse argparse.ArgumentParser().print_help() % COLUMNS=15 ./python test_argparse_narrow.py Traceback (most recent call last): File test_argparse_narrow.py, line 2, in module

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-06 Thread Joonas Kuorilehto
Joonas Kuorilehto jones...@derbian.fi added the comment: It is better to do the explicitly above the b64 encoding step. Just as host has been unquoted. user_passwd, host = splituser(host) host = unquote(host) Ok. So it needs to be done on the line

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.smith, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13718 ___ ___

[issue13718] Format Specification Mini-Language does not accept comma for percent value

2012-01-06 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13718 ___ ___

[issue13615] setup.py register fails with -r argument

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Maybe related to (or same as) #11473. -- assignee: tarek - eric.araujo components: +Distutils2 nosy: +alexis stage: - test needed title: `setup.py register` fails with -r argument - setup.py register fails with -r argument versions:

[issue11473] upload command no longer accepts repository by section name

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is a strange bug. I added a test using -r server2, using the already-existing PYPIRC_LONG_PASSWORD string as .pypirc contents. The test passes. To make sure changing one test would not affect another one, I created a new .pypirc file,

[issue13511] Specifying multiple lib and include directories on linux

2012-01-06 Thread Ray
Ray rpq...@hotmail.com added the comment: Martin, did you read my last post? Did you read the updated topic? libdir and includedir are *not* the issue. So it makes sense to allow configuring multiple directories for python installation for darwin but not linux? Why? --

[issue13703] Hash collision security issue

2012-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: hash-attack.patch does never decrement the collision counter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13033] Add shutil.chowntree

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. Before you do any more work, do other core developers agree that this function is a good addition or is it obsoleted by the generic improved-walk-with-callback that Nick is working on? Doc/library/shutil.rst: I don’t

[issue1040439] Missing documentation on how to link with libpython

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached patch adds the useful bits from the review I did; I hope you won’t think it’s pointless nitpicking. -- Added file: http://bugs.python.org/file24155/docembed-edits.patch ___ Python tracker

[issue13562] Notes about module load path

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I did the markup edits but then found out that the doc for Py_Initialize in c-api/init already mentions the module load path and the module table, so I’m going to make another patch with just a link to that. --

[issue13719] bdist_msi upload fails

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! Given the fragility of distutils, we try to add a test for every fix we commit, but I don’t remember if we already have a basic HTTP server to test the upload command. If not, I think I’ll commit this after manual testing (my Windows

[issue11473] upload command no longer accepts repository by section name

2012-01-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg150736 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11473 ___

[issue11473] upload command no longer accepts repository by section name

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [copy/paste failure in my previous message, please disregard] One possible factor is that my .pypirc is symlinked from ~/.pypirc to config/python/.pypirc and it's conceivable that Python 3.2.0 has some issues with symlink resolution that

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I merely forgot, thanks for the prod. I’m taking your message as a +1 to the wording and will commit when the server I use for tunnels is back online. -- ___ Python tracker rep...@bugs.python.org

[issue13716] distutils doc contains lots of XXX

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Tarek ruled that time spent improving the distutils docs was time lost and better spent on distutils2. Accordingly, I only fix clear bugs in the doc but don’t improve them in any way. I’m inclined to close this as wontfix, or I can remove the

[issue1040439] Missing documentation on how to link with libpython

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Attached patch adds the useful bits from the review I did; I hope you won’t think it’s pointless nitpicking. Looks good to me. -- ___ Python tracker rep...@bugs.python.org

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: hash-attack.patch does never decrement the collision counter. Why should it ? It's only used as local variable in the lookup function. Note that the

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: http://docs.python.org/dev/documenting/building.html also needs to be updated (it still mentions Subversion and probably obsolete versions of Sphinx and other packages). Well, the doc makefile still uses Subversion. As for the versions, if

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: http://docs.python.org/dev/documenting/building.html also needs to be updated (it still mentions Subversion and probably obsolete versions of Sphinx and other packages). If you are going to add the text proposed in your second message,

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IMO, help('help') should document the help function, not start an interactive help session (that’d be help()). -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6 ___ Python tracker

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Well, the doc makefile still uses Subversion. Indeed, I was thinking about getting a CPython checkout with the doc, not about the tools used to built it (maybe it could be clarified). I don’t understand: ps? From _Developpers's Guide:

[issue12415] Missing: How to checkout the Doc sources

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Indeed, I was thinking about getting a CPython checkout with the doc Right. I’ll edit my wording to mention Mercurial. I don’t understand: ps? From _Developpers's Guide: http://docs.python.org/devguide; The curse of being French :) I always

[issue11473] upload command no longer accepts repository by section name

2012-01-06 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Windows symlinks, much like Unix symlinks, should dereference naturally when open is called, although there is a bug in later versions of the c runtime calling stat on a symlink. See issue6727 for details. -- title: upload command

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2012-01-06 Thread Mads Kiilerich
New submission from Mads Kiilerich m...@kiilerich.com: According to http://docs.python.org/release/2.7.2/library/ssl wrap_socket can be used either on connected sockets or on un-connected sockets which then can be .connect'ed. In the latter case SSLSocket.connect() will (AFAIK) always raise a

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Alternatively all SSLSocket methods should take care not to dereference self._sslobj and they should respond properly - preferably with a socket/ssl exception. In getpeercert()'s case, I think None would be the right thing to return (as

[issue13703] Hash collision security issue

2012-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Here's an example of hash-attack.patch finding an on-purpose programming error (hashing all objects to the same value): http://stackoverflow.com/questions/4865325/counting-collisions-in-a-python-dictionary (see the second example on the page

[issue9253] argparse: optional subparsers

2012-01-06 Thread Benjamin West
Benjamin West bew...@gmail.com added the comment: Ok, Steven, that sounds reasonable. I checked out git-svn python and started comparing diffs... I'm a little confused. What version of argparse should be patched to provide this feature? My HG version from https://code.google.com/p/argparse/

[issue9253] argparse: optional subparsers

2012-01-06 Thread Benjamin West
Benjamin West bew...@gmail.com added the comment: Ok, Steven, that sounds reasonable. I checked out git-svn python and started comparing diffs... I'm a little confused. What version of argparse should be patched to provide this feature? My HG version from https://code.google.com/p/argparse/

[issue13562] Notes about module load path

2012-01-06 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13562 ___ ___ Python-bugs-list

[issue13719] bdist_msi upload fails

2012-01-06 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- components: +Windows nosy: +brian.curtin type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13719 ___

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Some remarks on the Windows implementation in termsize.diff.4: - On Windows, the C runtime always sets fileno(stdout) to 1, so hardcoded values are OK. But on Unix, I'm quite sure that embedded interpreters (mod_python?) sometimes close

[issue13562] Notes about module load path

2012-01-06 Thread Nam Nguyen
Nam Nguyen bits...@gmail.com added the comment: Please do keep the warning though. It is best to warn in both Python-C Py_Initialize() document and the Embedding tutorial. -- ___ Python tracker rep...@bugs.python.org

[issue1521950] shlex.split() does not tokenize like the shell

2012-01-06 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I've made a patch which implements this functionality, together with docs and tests. Please review. -- hgrepos: +99 nosy: +vinay.sajip stage: test needed - patch review ___ Python tracker

[issue1521950] shlex.split() does not tokenize like the shell

2012-01-06 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file24158/9e12275eec25.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-01-06 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Antoine, could you test the last version (test_pickle and if possible with the OP testcase)? I can't test it myself (32-bit machine with 1 GB). -- ___ Python tracker rep...@bugs.python.org

[issue9993] shutil.move fails on symlink source

2012-01-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1ea8b7233fd7 by Antoine Pitrou in branch 'default': Issue #9993: When the source and destination are on different filesystems, http://hg.python.org/cpython/rev/1ea8b7233fd7 -- nosy: +python-dev

[issue9993] shutil.move fails on symlink source

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch now committed to 3.3. Thank you Jonathan and Hynek! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le vendredi 06 janvier 2012 à 19:17 +, Charles-François Natali a écrit : Charles-François Natali neolo...@free.fr added the comment: Antoine, could you test the last version (test_pickle and if possible with the OP testcase)? I can't

[issue13703] Hash collision security issue

2012-01-06 Thread Paul McMillan
Paul McMillan p...@mcmillan.ws added the comment: Those who use or advocate a simple randomized starting hash (Perl, Ruby, perhaps MS, and the CCC presenters) are presuming that the randomized hash values are kept private. Indeed, they should be (and the docs could note this) unless an

[issue13722] distributions can disable the encodings package

2012-01-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: In _PyCodecRegistry_Init() (in Python/codecs.c), it is attempted to import the encodings module (so that the default search function gets registered) and failures get ignored following the same reasoning: /* Ignore ImportErrors...

[issue13703] Hash collision security issue

2012-01-06 Thread Pavel Labushev
Changes by Pavel Labushev p.labus...@gmail.com: -- nosy: +Arach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list

[issue13703] Hash collision security issue

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You're suggesting that in order for a Python application to be secure, it's a requirement that we randomly kill and restart processes from time to time? No, that is not what I said. -- ___ Python

[issue13703] Hash collision security issue

2012-01-06 Thread Paul McMillan
Paul McMillan p...@mcmillan.ws added the comment: An attack can be based on trying to find many objects with the same hash value, or trying to find many objects that, as they get inserted into a dictionary, very often cause collisions due to the collision resolution algorithm not finding a

[issue13723] Regular expressions: (?:X|\s+)*$ takes a long time

2012-01-06 Thread Eric Promislow
New submission from Eric Promislow er...@activestate.com: This regular expression takes a few seconds to be evaluated against any text: (.*?)((?:X|\s+)*)$ This reg ex is much faster: (.*?)((?:X|\s)*)$ To be fair, Ruby's performance with the first regex is the same as Python's. PHP and

[issue13723] Regular expressions: (?:X|\s+)*$ takes a long time

2012-01-06 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13723 ___ ___ Python-bugs-list mailing

[issue13703] Hash collision security issue

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm in cautious agreement that collision counting is a better strategy. Disagreed. Raising randomly is unacceptable (false positives), especially in a bugfix release. The dict implementation performance would suffer from randomization.

[issue13703] Hash collision security issue

2012-01-06 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list

[issue13724] socket.create_connection and multiple IP addresses

2012-01-06 Thread Mads Kiilerich
New submission from Mads Kiilerich m...@kiilerich.com: Forked from issue13721 where I was too lazy to report it separately: http://docs.python.org/release/2.7.2/library/socket#socket.create_connection doesn't describe how it loops over all IP addresses. That seems to be the functions main

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2012-01-06 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: I think it would be confusing if getpeercert returned None both for valid connections without certificates and also for invalid connections. I would almost prefer the current behaviour (AttributeError) if just it was documented and there

[issue13511] Specifying multiple lib and include directories on linux

2012-01-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No, I only read the original message. I find it too tedious to read the entire set of messages just to find out what the issue may be. If an issue has sufficiently deviated from the original report, it is better closed, and a new issue is

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: - fd argument is retained, because we might want to test terminals  opened with openpty. You mean a terminal different than the one used for stdin, stdout and stderr? - two functions: still there. I think that

[issue13609] Add os.get_terminal_size() function

2012-01-06 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: - fd argument is retained, because we might want to test terminals opened with openpty. You mean a terminal different than the one used for stdin, stdout and stderr? For example, let's see what is the size of my two xterms:

[issue13722] distributions can disable the encodings package

2012-01-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Agreed. This behavior probably comes from the times when unicode was an optional feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13722

[issue13685] argparse does not sanitize help strings for % signs

2012-01-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13685 ___ ___ Python-bugs-list mailing

[issue13686] Some notes on the docs of multiprocessing

2012-01-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13686 ___ ___ Python-bugs-list mailing

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree. It should explain the three options: help(object): help on object or class of object, except help('name'): help on object/module named 'name' help(): run utility, which starts with utility help help(help) prints unhelpful Help on

[issue13692] 2to3 mangles from . import frobnitz

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If this is fixed in 3.2, can this be closed? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13692 ___

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I hope the proper fix will ensure that an exception always is raised if the ssl handshake fails - and that a successful wrap_socket means that the ssl negotiation did succeed with the given constraints. It might however only be feasible to fix

[issue13724] socket.create_connection and multiple IP addresses

2012-01-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: http://docs.python.org/release/2.7.2/library/socket#socket.create_connection doesn't describe how it loops over all IP addresses. That seems to be the functions main advantage (and a gotcha) compared to creating the socket and connecting

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The code works fine on 3.2.2, Win7, IDLE, narrowest window possible (about 14 chars), which actually wraps to the window width. (In command window, lines are fixed length and scroll bar is added if window is narrowed.) What system and version

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Devin Jeanpierre
Devin Jeanpierre jeanpierr...@gmail.com added the comment: IMO, help('help') should document the help function, not start an interactive help session (that’d be help()). Ahhh, that explains it. help('help') isn't ever meant to be called; it's supposed to be: help() ... help help ... the

[issue9253] argparse: optional subparsers

2012-01-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You should work in the 3.3 standard library, i.e. on Lib/argparse.py in the default branch of the CPython Mercurial repository. See the devguide for more info. Thanks! -- ___ Python tracker

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___