[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-07 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: Thanks for the explanation I still think that the patch can be simplified, not using path lengths and the found flag collapsed_path = _url_collapse_path(self.path) for head in self.cgi_directories: if head==collapsed_path:

[issue14657] Avoid two importlib copies

2012-05-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In that case, how about we go with: 1. By default, importlib._bootstrap is never imported. Instead, it is set to be a reference to _frozen_importlib. However, _frozen_importlib does *not* lie about where it came from (and doesn't assume the

[issue14034] Add argparse howto

2012-05-07 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: thanks so much for your rime in reviewing and committing -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14034 ___

[issue14736] Add {encode, decode}_filter_properties() functions to lzma module

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Changeset 9118ef2b651a was broken, but the bug should have been fixed by changeset 10ccbb90a8e9. Which revision have you been using? I used the revision 76809:ab57e29157bb. Yes, now the bug fixed. Thank you once again. -- title:

[issue14695] Tools/parser/unparse.py is out of date.

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f9344a3eaaa6 by Mark Dickinson in branch 'default': Issue #14695: Run Tools/parser/test_unparse.py as part of test_tools. http://hg.python.org/cpython/rev/f9344a3eaaa6 -- nosy: +python-dev

[issue14695] Tools/parser/unparse.py is out of date.

2012-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, David! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14695 ___

[issue14739] Add PyArg_Parse format unit like O but providing context

2012-05-07 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: If you write a PyArg_Parse converter, and your conversion hits an error, you must raise an exception and error out. But, since your converter has no context about the parameter, it can't provide any helpful information in the error. For

[issue14739] Add PyArg_Parse format unit like O but providing context

2012-05-07 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14739 ___ ___ Python-bugs-list

[issue14739] Add PyArg_Parse format unit like O but providing context

2012-05-07 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- components: +Interpreter Core stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14739 ___

[issue9530] integer undefined behaviors

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c9c2031cf16d by Mark Dickinson in branch 'default': Add John Regehr to Misc/ACKS for his help with finding integer overflows (issue #9530). http://hg.python.org/cpython/rev/c9c2031cf16d --

[issue14705] Add 'bool' format character to PyArg_ParseTuple*

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e4617650f006 by Larry Hastings in branch 'default': Issue #14705: Added support for the new 'p' format unit to skipitem(). http://hg.python.org/cpython/rev/e4617650f006 --

[issue14739] Add PyArg_Parse format unit like O but providing context

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: It would be better if the functions PyArg_Parse* were wrapped converter's exception, in other exception with adding the names of function and parameter in the message. This will save us from necessity of the introduction of the new

[issue14695] Tools/parser/unparse.py is out of date.

2012-05-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14695 ___ ___

[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

2012-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing as won't fix; Python is sadly far from consistent about returning infinity versus raising OverflowError, in a wide variety of situations. For example, compare: * float(Decimal('1e310')) with float(Fraction('1e310')), or *

[issue14700] Integer overflow in classic string formatting

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 064c2d0483f8 by Mark Dickinson in branch 'default': Issue #14700: Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting. Thanks Serhiy Storchaka for report and original

[issue14700] Integer overflow in classic string formatting

2012-05-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14700 ___

[issue13697] python RLock implementation unsafe with signals

2012-05-07 Thread Mike Meyer
Mike Meyer m...@mired.org added the comment: I just ran into this issue in the logging module using 2.7. Here's the TB in case it sheds any light on the issue Traceback (most recent call last): File ./crawler.py, line 531, in module main(argv[1:]1:) File ./crawler.py, line 522, in main

[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

2012-05-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I agree. Fixing all this would probably require a PEP. It looks like the original plan was to provide a facility to turn off the Overflow exception: http://mail.python.org/pipermail/python-dev/2000-May/003990.html --

[issue14739] Add PyArg_Parse format unit like O but providing context

2012-05-07 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14739 ___ ___

[issue14701] parser module doesn't support 'raise ... from'

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc17f70292f6 by Mark Dickinson in branch '3.2': Issue #14701: Add missing support for 'raise ... from' in parser module. http://hg.python.org/cpython/rev/fc17f70292f6 New changeset 0dd0d56bdcc1 by Mark Dickinson in

[issue14588] PEP 3115 compliant dynamic class creation

2012-05-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In going to add documentation for your patch, I realised the operator module is not the right place for this. The types module actually seems like the most appropriate home, but that will require adding a _types module to back it. I'll post

[issue14701] parser module doesn't support 'raise ... from'

2012-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Now fixed. Terry: I suggest opening a separate doc issue for the 'CPython-specific' issue -- assignee: - mark.dickinson components: +Library (Lib) resolution: - fixed status: open - closed ___

[issue14716] Use unicode_writer API for str.format()

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7be716a47e9d by Victor Stinner in branch 'default': Close #14716: str.format() now uses the new unicode writer API instead of the http://hg.python.org/cpython/rev/7be716a47e9d New changeset ab500b297900 by Victor

[issue6602] BaseHTTPServer log_message should log to sys.stdout

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Disagreed. sys.stderr is not only for errors but all informational messages of little value (warnings, debug messages etc.). Also, logging to two different streams makes redirecting clumsier. If you want to change this, it would more useful to

[issue9177] ssl.read/write on closed socket raises AttributeError

2012-05-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, pitrou stage: - needs patch versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9177

[issue9177] ssl.read/write on closed socket raises AttributeError

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think mimicking EBADF is very useful. Reading from a closed socket is usually a programming error, so it's not the kind of error you'll want to catch at runtime. AttributeError may not be very pretty though, so perhaps a ValueError can

[issue11477] Bug in code dispatching based on internal slots

2012-05-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I'm currently planning to postpone fixing this until 3.4. However, if someone else wants to pick it up for 3.3, go ahead. -- assignee: ncoghlan - versions: +Python 3.4 -Python 3.3 ___ Python

[issue5251] contextlib.nested inconsistent with, well, nested with statements due exceptions raised in __enter__

2012-05-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Superseded by issue 13585 (which will add an improved dynamic context management API) -- resolution: postponed - out of date status: open - closed superseder: - Add contextlib.ExitStack ___ Python

[issue1294232] Error in metaclass search order

2012-05-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: ncoghlan - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294232 ___ ___

[issue14700] Integer overflow in classic string formatting

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Mark, I deliberately have not used the exact formula for the overflow. Comparison with the constant is much cheaper than division or multiplication. Microbencmark: ./python -m timeit -s 'f=%.1234567890s*100;x=(,)*100' 'f%x' Before

[issue14700] Integer overflow in classic string formatting

2012-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Sure, I realize that, but I prefer not to be sloppy in the overflow check, and to use the same formula that's already used in stringlib. I somehow doubt that this micro-optimization is going to have any noticeable effect in real code.

[issue14722] Overflow in parsing 'float' parameters in PyArg_ParseTuple*

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: May be proposed tests (except for the overflow) would be helpful? Right now 'f' and 'd' parsing code is not covered by tests. -- ___ Python tracker rep...@bugs.python.org

[issue14740] get_payload(n, True) returns None

2012-05-07 Thread Bob Glickstein
New submission from Bob Glickstein bob.glickst...@gmail.com: Passing both a value for i and decode=True to email.message.Message.get_payload(), when self is a multipart, returns None when it should return a string. The reason is that an is_multipart() test is done on self when it should

[issue14740] get_payload(n, True) returns None

2012-05-07 Thread Bob Glickstein
Bob Glickstein bob.glickst...@gmail.com added the comment: Incidentally, a workaround is: msg.get_payload(n).get_payload(decode=True) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14740

[issue14740] get_payload(n, True) returns None

2012-05-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report and patch suggestion, but... This is actually the way it is designed to work. get_payload(i) returns the ith element of a multipart payload. Your workaround is in fact the correct way to do this operation.

[issue14657] Avoid two importlib copies

2012-05-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Should we have a separate context manager for this, or just make it a flag for a unified import_state() decorator? Or do we want to *always* force the use of the Python code instead of the frozen code? --

[issue14657] Avoid two importlib copies

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should we have a separate context manager for this, or just make it a flag for a unified import_state() decorator? Or do we want to *always* force the use of the Python code instead of the frozen code? Ideally, we would want to test both

[issue14657] Avoid two importlib copies

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ideally, we would want to test both versions, so that any oddity in the freezing mechanism gets exercised and diagnosed properly. (not to mention the speedups in import.c) -- ___ Python tracker

[issue14657] Avoid two importlib copies

2012-05-07 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: I'm +1 on Nick's recommendation. @Antoine Ideally, we would want to test both versions, so that any oddity in the freezing mechanism gets exercised and diagnosed properly. +1 Does this mean that the whole test suite should be run

[issue4508] distutils compiler not handling spaces in path to output/src files

2012-05-07 Thread fishdude
fishdude fishd...@gmx.net added the comment: i have to report that this issue also happens on Linux and Mac as well. no matter wether python 2.6 or 2.7 is used. -- components: +Macintosh nosy: +fishdude versions: +Python 2.6 ___ Python tracker

[issue14697] parser module doesn't support set displays or set comprehensions

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 129289144dfb by Mark Dickinson in branch '3.2': Issue #14697: Fix missing parser module support for set displays and set comprehensions. http://hg.python.org/cpython/rev/129289144dfb New changeset 4815a4a4a852 by

[issue14697] parser module doesn't support set displays or set comprehensions

2012-05-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14697 ___

[issue14657] Avoid two importlib copies

2012-05-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It might be sufficient to only run tests from the following files with both importlib._bootstrap and _frozen_importlib: test_imp.py test_import.py test_importhooks.py test_importlib.py test_pkgimport.py

[issue14657] Avoid two importlib copies

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It might be sufficient to only run tests from the following files with both importlib._bootstrap and _frozen_importlib: I was only thinking about test_importlib myself. -- ___ Python tracker

[issue14700] Integer overflow in classic string formatting

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I somehow doubt that this micro-optimization is going to have any noticeable effect in real code. Agree. I just found this bug, trying to optimize the code. -- ___ Python tracker

[issue4508] distutils compiler not handling spaces in path to output/src files

2012-05-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the confirmation. Note that the versions field in this bug tracker indicates the versions that will get fixed, not all versions with the bug; 2.6 only gets security fixes now. Are you interested in updating the patch with a test

[issue14741] parser module doesn't support Ellipsis.

2012-05-07 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Here's a simple patch. With this and other recent patches to the parser module, we can now correctly roundtrip all the (valid) Python files in Lib/ and Lib/test/. -- assignee: mark.dickinson components: Library (Lib) files:

[issue14741] parser module doesn't support Ellipsis.

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b1cc84bf1d9 by Mark Dickinson in branch '3.2': Issue #14741: Fix missing support for ellipsis in parser module. http://hg.python.org/cpython/rev/2b1cc84bf1d9 New changeset d50577c5711b by Mark Dickinson in branch

[issue14741] parser module doesn't support Ellipsis.

2012-05-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14741 ___

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In the patch I'm assuming that the port number can only contain ascii digits RFC 3986 [0] defines the port as port = *DIGIT and part of the authority [1] as authority = [ userinfo @ ] host [ : port ] userinfo =

[issue10733] plistlib rejects strings containing control characters

2012-05-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10733 ___ ___

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 14036. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14072 ___

[issue10765] Build regression from automation changes on windows

2012-05-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Can you still reproduce this? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10765 ___

[issue13936] datetime.time(0, 0, 0) evaluates to False despite being a valid time

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___ ___ Python-bugs-list

[issue10427] 24:00 Hour in DateTime

2012-05-07 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10427 ___ ___ Python-bugs-list

[issue14657] Avoid two importlib copies

2012-05-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I would say test_importlib and test_imp (test_import really should just get folded into test_importlib). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14657

[issue14366] Supporting lzma compression in zip files

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: The patch updated to use functions encode_filter_properties and decode_filter_properties from the lzma module. Thank you, Nadeem Vawda. -- Added file: http://bugs.python.org/file25488/lzma_in_zip_2.patch

[issue14366] Supporting lzma compression in zip files

2012-05-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file25430/lzma_in_zip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14366 ___

[issue14583] try/except import fails --without-threads

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d6324941b739 by Antoine Pitrou in branch 'default': Issue #14583: Fix importlib bug when a package's __init__.py would first import one of its modules then raise an error.

[issue14742] test_tools very slow

2012-05-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Apparently test_unparse goes a bit overboard. test_compiler in 2.x had a more reasonable approach: it only compiled all files with -uall, otherwise it would choose 10 at random. -- components: Tests messages: 160165 nosy:

[issue14743] on terminating, Pdb debugs itself

2012-05-07 Thread Xavier de Gaye
New submission from Xavier de Gaye xdeg...@gmail.com: All the problems raised in this issue are caused by self.botframe being set in a Pdb frame. In the following pdb session run with python 3.2.2, the first two frames in the printed stack are Pdb frames, this is wrong. And the second step

[issue14583] try/except import fails --without-threads

2012-05-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should be fixed now. The buildbot has been able to launch the test suite. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue13183] pdb skips frames after hitting a breakpoint and running step

2012-05-07 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: Note that now that this issue is fixed, issue 14743 has become more visible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13183 ___

[issue10765] Build regression from automation changes on windows

2012-05-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10765 ___ ___ Python-bugs-list

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-07 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Hi Pierre, You are right, the found variable is not needed, I guess the reason I coded it that way, is I had some validation code before the return, during testing, so it was easier not to have it in three places. Regarding

[issue12298] Sphinx glitch in library/functions

2012-05-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sandro ported to 2.7 in 07b3fc67bf45. Thanks! If I may make two remarks: - Please duplicate commit messages from 3.2 and 2.7: it makes it easier to understand what a changeset is about without having to hunt. (This does not apply to 3.3 as

[issue14742] test_tools very slow

2012-05-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: That sounds like a better approach. I'll back out the test_unparse inclusion until this can be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14742

[issue14742] test_tools very slow

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dbfacec7e368 by Mark Dickinson in branch 'default': Issue #14742: Don't include DirectoryTestCase from test_unparse in test_tools until we can speed it up. http://hg.python.org/cpython/rev/dbfacec7e368 --

[issue12298] Sphinx glitch in library/functions

2012-05-07 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Oh sorry Éric, I completely oversaw there was an issue associated with the cset - i'll pay more attention next time! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298

[issue12298] Sphinx glitch in library/functions

2012-05-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: No problem, what counts is that our documentation and code get better for our users, not my ego :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12298

[issue14716] Use unicode_writer API for str.format()

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 01581e8b50f2 by Victor Stinner in branch 'default': Backout ab500b297900: the check for integer overflow is wrong http://hg.python.org/cpython/rev/01581e8b50f2 -- ___

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-07 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: Since 7be716a47e9d (issue #14716), str.format() uses the unicode_writer API. I propose to continue the work in this direction to avoid more temporary buffers. Python 3.3: 100 loops, best of 3: 0.573 usec per loop 10 loops,

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-07 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Comments on the patch. -PyAPI_FUNC(PyObject *) _PyComplex_FormatAdvanced(PyObject *obj, +PyAPI_FUNC(int) _PyComplex_FormatWriter(PyObject *obj, Even if it is a private function, I prefer to rename it because its API does change. /*

[issue14745] Misleading exception

2012-05-07 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ python3.2 -c 'open(/dev/null, w).read()' Traceback (most recent call last): File string, line 1, in module io.UnsupportedOperation: not readable $ python3.3 -c 'open(/dev/null, w).read()' Traceback (most recent

[issue14746] Remove redundant paragraphs from getargs.c skipitem()

2012-05-07 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: There's code like this in skipitem() in Python/getargs.c: case 'b': /* byte -- very short int */ /* ... a zillion more case statements here ... */ case 'C': /* unicode char */ case 'p': /* boolean predicate */ {

[issue14735] Version 3.2.3 IDLE CTRL-Z plus Carriage Return to end does not work

2012-05-07 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Ctrl+Z followed by Return still exits the Python shell on the command prompt under Vista. The simplest way to get this behavior working in IDLE would be modifying the end-of-file definition in config-keys.def, but only for the Windows

[issue14745] Misleading exception

2012-05-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2cd9dadd5c6c by Benjamin Peterson in branch 'default': explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup (closes #14745) http://hg.python.org/cpython/rev/2cd9dadd5c6c

[issue13659] Add a help() viewer for IDLE's Shell.

2012-05-07 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is an initial diff for creating a separate pager window by using a textView widget. The recently applied patch in issue964437 allows this window to be non-modal, which can be useful for interactive development. The diff contains

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14732 ___ ___ Python-bugs-list

[issue14654] Faster utf-8 decoding

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14654 ___ ___ Python-bugs-list

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9374 ___ ___

[issue5557] Byte-code compilation uses excessive memory

2012-05-07 Thread Zhiping Deng
Changes by Zhiping Deng kofreesty...@gmail.com: -- nosy: +Zhiping.Deng ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5557 ___ ___ Python-bugs-list

[issue6602] Add argument to control file object used by BaseHTTPServer’s log_message

2012-05-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Clearly +1 to Antoine; that’s just how unix programs do it. stdout is for the program output, which may be formatted in a certain way in order to be piped to another program, and stderr is for all messages for the human user. Editing the bug

[issue14743] on terminating, Pdb debugs itself

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +needs review nosy: +georg.brandl stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14743 ___

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-07 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14565 ___ ___

[issue14747] Classifiers are missing from distutils2-generated metadata

2012-05-07 Thread Alex Grönholm
New submission from Alex Grönholm alex.gronholm+pyt...@nextday.fi: Apparently they worked in 1.0a3 but not in 1.0a4 anymore. -- assignee: eric.araujo components: Distutils2 messages: 160184 nosy: agronholm, alexis, eric.araujo, tarek priority: normal severity: normal status: open title:

[issue14654] Faster utf-8 decoding

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: See issue14738 for advanced optimization. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14654 ___

[issue14744] Use _PyUnicodeWriter API in str.format() internals

2012-05-07 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: If this patch is accepted, it's more to go even deeper: use _PyUnicodeWriter in long_to_decimal_string() for example. long_to_decimal_string() is already creates a string of known size. How _PyUnicodeWriter can help here? Issue3451