[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-15 Thread Łukasz Langa
Łukasz Langa added the comment: Georg, be our hero here. I would be disappointed if this missed 3.2 and made us wait another 18 months (or 3 years for Linux distribution inclusion) for that feature. This feature makes the first edition of argparse in py3k complete in terms of subcommands. -

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: Looks good and ready to me. Regarding “alias” in help text, note that Mercurial prints it (using one line for them) but Subversion puts aliases in parentheses just after the main command name, which works very for me (not a beginner). Stephen, what do you thin

[issue10713] re module doesn't describe string boundaries for \b

2010-12-15 Thread Ralph Corderoy
New submission from Ralph Corderoy : The re module defines \b in a regexp to need \w one side and \W the other. What about when the end of the string or line is involved? perlre(1) says that's treated as a \W. Python should precisely document that case too. -- assignee: d...@python

[issue10538] PyArg_ParseTuple("s*") does not always incref object

2010-12-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Well, I can submit a patch if anyone is interested. I came across this when writing asynchronous network code. By hanging onto the Py_buffer, I should have access to the data during the network call. But it only worked for "true" Py_buffer objects an

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: Do you want to backport the new makedirs function to d2/_backport/__init__.py? -- keywords: +easy -patch stage: patch review -> needs patch ___ Python tracker

[issue10559] NameError in tutorial/interpreter

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: New wording: When known to the interpreter, the script name and additional arguments thereafter are passed to the script in the variable ``sys.argv``, which is a -list of strings. Its length is at least one; when no script and no arguments +list of strings. Yo

[issue10609] dbm documentation example doesn't work (iteritems())

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: IMO, wrapping db in a dict defeats the purpose of dbm implementing a mapping interface. I would use the most natural mapping idioms: - for k, v in db.iteritems(): - print(k, '\t', v) + for k in db: + print(k, '\t', db[k]) The downside of this ex

[issue10627] Remove usage of deprecated configparser.ConfigParser class in the stdlib

2010-12-15 Thread Łukasz Langa
Łukasz Langa added the comment: SafeConfigParser was renamed to ConfigParser in r87299 so this change is no longer necessary. -- resolution: -> out of date stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: I removed one instance of unnecessary markup in r87294 (pointed by Michael Foord on IRC) and made other minor changes in r87296, r87300 and r87302. Those eight commits are now merged in 3.1 as r87305 and 2.7 as r87308. Please let me know if you find any merge g

[issue8140] extend compileall to compile single files

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: I have added versionadded directives that were missing in the doc. -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue10710] Is Misc/setuid-prog.c still needed?

2010-12-15 Thread Brett Cannon
Brett Cannon added the comment: I say ditch it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10714] httpserver request length

2010-12-15 Thread Ross Lagerwall
New submission from Ross Lagerwall : BaseHTTPRequestHandler in http.server does not limit the length of the request line so a malicious client can cause the server to run out of memory with a malicious request. This patch limits the length to 64K (like Apache) and sends Error 414 if it exceed

[issue10714] httpserver request length

2010-12-15 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8140] extend compileall to compile single files

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: I also added the missing function description. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10715] uninformative error message

2010-12-15 Thread Phillip Feldman
New submission from Phillip Feldman : The error message "OSError: [Errno 2] No such file or directory" would be far more helpful if it specified the name of the file or directory that cannot be found. -- messages: 124108 nosy: Phillip.M.Feldman priority: normal severity: normal status:

[issue8233] extend py_compile to compile files from stdin

2010-12-15 Thread Éric Araujo
Éric Araujo added the comment: Missing doc added in r87312 and r87311. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-li

[issue10611] sys.exit() in a test causes a test run to die

2010-12-15 Thread Ray.Allen
Ray.Allen added the comment: > I'd like to fix all these issues by moving the exception handling into a > single method and unifying the reporting of failure / error / expected > failure / skip test. This will fix all these issues and nicely simplify the > implementation. That sounds good.

[issue6791] httplib read status memory usage

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I just read the whole discussion and it seems that code was in place so that client can tolerant of a BAD HTTP 0.9 Server response. http://www.w3.org/Protocols/HTTP/OldServers.html Given that issue10711 talks about removing HTTP/0.9 support (+1 to that), this

<    1   2