[issue10015] Creating a multiprocess.pool.ThreadPool from a child thread blows up.

2011-10-26 Thread Alister Cordiner
Alister Cordiner added the comment: I think that workaround should be: if not hasattr(threading.current_thread(), "_children"): threading.current_thread()._children = weakref.WeakKeyDictionary() -- nosy: +acordiner ___ Python tracker

[issue13268] assert statement violates the documentation

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Ezio Melotti
Ezio Melotti added the comment: I think Éric is referring to the foo(bar, *, baz=None) syntax. In 2.7 you can drop the '*' and still leave only the keyword arguments that you think are more useful. I also see that you converted a few examples to use shell=True, but afaiu that should be avoid

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +bethard, eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1602] windows console doesn't print or input Unicode

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker ___ ___ Python-bugs-l

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. So Python will not "crash" anymore if the console code page is set to cp65001. -- nosy: +haypo ___ Python tracker

[issue10920] cp65001, PowerShell, Python crash.

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. So Python will not "crash" anymore if the console code page is set to cp65001. -- ___ Python tracker

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker ___ ___ Python-bugs-

[issue6058] Add cp65001 to encodings/aliases.py

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker ___ ___ Python-bugs-l

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Lib/encodings/cp65001.py uses a little trick to mark the codec as specific to Windows: - if not hasattr(codecs, 'code_page_encode'): raise LookupError("cp65001 encoding is only available on Windows") - -- __

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Oops, I specified the wrong issue number in my changeset 2cad20e2e588, it's the issue #13216. -- resolution: fixed -> status: closed -> open ___ Python tracker _

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2cad20e2e588 by Victor Stinner in branch 'default': Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) http://hg.python.org/cpython/rev/2cad20e2e588 -- resolution: -> fixed status: open -> closed ___

[issue13216] Add cp65001 codec

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0eac706d82d1 by Victor Stinner in branch 'default': Fix the issue number of my cp65001 commit: 13247 => issue #13216 http://hg.python.org/cpython/rev/0eac706d82d1 -- nosy: +python-dev ___ Python tracker

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cad20e2e588 by Victor Stinner in branch 'default': Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) http://hg.python.org/cpython/rev/2cad20e2e588 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status:

[issue6397] Implementing Solaris "/dev/poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- title: Implementing Solaris "poll" in the "select" module -> Implementing Solaris "/dev/poll" in the "select" module ___ Python tracker ___ __

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Documentation added. That solves 2 and 5. I still have to solve 6. -- ___ Python tracker ___ ___ P

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23532/0b701eb5e9e3.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Python 2 uses byte strings. If characters are not encodable to the ANSI code page, Windows replaces them by question marks. See the issue #13247 for another example (in Python 3 when using explicitly the bytes API). To be able to support characters not encoda

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Solved points 1, 3 and 4. 2 will be solved with the documentation. 5 and 6 still pending. -- ___ Python tracker ___ _

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Joshua Chia
New submission from Joshua Chia : What steps will reproduce the problem? 1. Make a script containing this code: parser = argparse.ArgumentParser() parser.add_argument('-i', '--input-base-directory', type=argparse.FileType('r'), default='/home') parser

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I have decided to segregate "select.devpoll" to a separate object, like "select.epoll". -- ___ Python tracker ___

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Westley Martínez
Westley Martínez added the comment: http://www.archlinux.org/download/ It's a minimalist distribution but if you read through the install guide or beginner's guide you'll be fine. -- ___ Python tracker _

[issue13270] all classes are new style

2011-10-26 Thread Florent Xicluna
New submission from Florent Xicluna : these last references to old/new classes should be dropped. See patch. -- assignee: docs@python components: Documentation files: all_classes_belong_to_new_style.diff keywords: patch messages: 146455 nosy: docs@python, flox priority: normal severity:

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: That's deliberate, as I'm only showing a selected subset of the full signature at that point and using the subprocess API's with positional arguments would lead to almost incomprehensible code. I'm not in any great hurry to forward port though, so I'm happy to wai

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-10-26 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: added some tests (not sure if in appropriate place). -- Added file: http://bugs.python.org/file23529/issue_8036_1.patch ___ Python tracker ___

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I am not marking 'test needed' since the problem is 'hardly reproducible'. The attached script named 'asyncore_epipe.py' may be used to reproduce systematically the EPIPE error on linux with Python 3.2: * the Reader closes the socket after receiving the

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yuval, you are assuming that *no one* who uses the os byte APIs on Windows is either checking for '?' in returned paths or catching later exceptions. With Google code search, I did find one instance where someone tests paths for '?' after encoding with the fi

[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-26 Thread Santoso Wijaya
Santoso Wijaya added the comment: Unicode environment vars work properly in Python 3.x on Windows, too, because the convertenviron() function in posixmodule.c uses extern _wenviron PyUnicode_FromWideChar() in Python 3.x. In Python 2.7, convertenviron() uses extern environ and PyString_FromStr

[issue10860] Handle empty port after port delimiter in httplib

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0499b2b28aa by Petri Lehtinen in branch '2.7': Issue #10860: Skip the new test if HTTPS is not available http://hg.python.org/cpython/rev/e0499b2b28aa New changeset a3939c2f6727 by Petri Lehtinen in branch '3.2': Issue #10860: Skip the new test if

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-26 Thread Ned Deily
Ned Deily added the comment: With a current 3.3 build (i.e. "wide" build) on OS X, I can reproduce this. It causes an exception on the execution of that command in the IDLE shell but it doesn't crash IDLE. Not surprisingly, it doesn't seem to be reproducible with 3.2 "narrow" builds. --

[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: It seems this cannot be achieved the same way in 2.7 as the traceback is not directly associated with the exception. However, if we're currently in an exception handler and sys.exc_info() corresponds to the exception passed to generator.throw(), we could use

[issue4945] json checks True/False by identity, not boolean value

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list m

[issue13268] assert statement violates the documentation

2011-10-26 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- components: +Interpreter Core nosy: +petri.lehtinen versions: -Python 2.6 ___ Python tracker ___ ___ P

[issue13236] unittest needs more flush calls

2011-10-26 Thread Peter Eisentraut
Peter Eisentraut added the comment: Attached is a test file. The key here is that I'm running the unittest suite inside of a long-running server process, so there is no predictable point of exit and cleanup. Therefore, the steps I show at the end of the file should be run in an interactive

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: First version of the patch. Review 0ee4386d8f51.diff http://bugs.python.org/file23526/0ee4386d8f51.diff Details: 1. Current code aliases "devpoll" in platforms with "/dev/poll" (Solaris and derivatives). Considering all the other points, I think that provid

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue4945] json checks True/False by identity, not boolean value

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki : -- nosy: +abki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-26 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki : -- nosy: +abki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-26 Thread Ned Deily
Ned Deily added the comment: Haypo, the OP has a workaround. IMO, we should not be making any recommendations about which Apple compiler to use on OS X 10.7 until we have completed test cycles of each. There are too many variables at the moment. I am doing that and should have results in a

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've been able to consistently reproduce the test_resources failure on Ubuntu 11.10 64-bit, FWIW. -- ___ Python tracker ___

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: I want to review the doc, but lack time right now. For example, one function signature in your patch uses keyword-only arguments but 2.7 doesn’t support them. -- ___ Python tracker

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: anikom15, can you give me a URI to download the OS you used? I don’t know when I’ll be able to download Windows, but surely a linux-using OS will take less space and time to download and install in a VM. -- ___ Pytho

[issue13268] assert statement violates the documentation

2011-10-26 Thread Alexander Myodov
Changes by Alexander Myodov : -- title: assert -> assert statement violates the documentation ___ Python tracker ___ ___ Python-bugs-l

[issue1011113] Make “install” find the build_base directory

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: Actually I think this bug can be fixed in distutils. -- components: +Distutils keywords: +easy resolution: remind -> stage: -> needs patch type: feature request -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 __

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- Removed message: http://bugs.python.org/msg146438 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Eric, the original text says: """ The Create Patch button will then compute a diff for the head revision of the **remote** branch, and attach the diff to the issue. """ :-) -- ___ Python tracker

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Eric, the original text says: """ The Create Patch button will then compute a diff for the head revision of the remote branch, and attach the diff to the issue. ^^ """ :-) -- ___ Python tracker

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fbd2fe8c13c by Jesus Cea in branch 'default': Close #13269: Document that "Remote hg repo" accepts remote branches http://hg.python.org/devguide/rev/7fbd2fe8c13c -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/re

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Éric Araujo
Éric Araujo added the comment: > I take care of this. Okay, as long as you don’t use Git terminology like “remote” :) -- components: +Devguide -Distutils ___ Python tracker ___

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Distutils nosy: +eric.araujo, ezio.melotti stage: -> needs patch ___ Python tracker ___ ___

[issue13269] Document that "Remote hg repo" accepts remote branches

2011-10-26 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : "Remote hg repo" accepts remote branches, but the devguide says that the patch must be in "default" branch. Update the docs. I take care of this. -- assignee: jcea keywords: easy messages: 146435 nosy: jcea priority: normal severity: normal status

[issue13268] assert

2011-10-26 Thread Alexander Myodov
New submission from Alexander Myodov : The extended version of assert statement has a strange violation of documented behaviour. According to the http://docs.python.org/reference/simple_stmts.html#the-assert-statement, "assert expression1, expression2" should be equivalent to "if __debug__: i

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file23524/d014fd90a487.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- keywords: +patch Added file: http://bugs.python.org/file23524/d014fd90a487.diff ___ Python tracker ___

[issue6397] Implementing Solaris "poll" in the "select" module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- hgrepos: +86 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I asked for more information about llvm-gcc on IRC (#llvm). Extracts: - "llvm-gcc is not maintained." ("Clang and DragonEgg are.) "Apple is the maintainer of Apple's version of llvm-gcc and clang." - "Apple ships a [llvm-gcc] branch at a random point in svn

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dfe6d7f7c61 by Nick Coghlan in branch '2.7': Issue #13237: fix typo http://hg.python.org/cpython/rev/5dfe6d7f7c61 -- ___ Python tracker _

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: Absent any further feedback, I think I'm done with the changes to the 2.7 subprocess docs. I'll let them sit for a few days, then do the forward port to 3.2 and default. There are a couple of additional changes I'll add to the 3.x versions: - mention redirectin

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X -> llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7) ___ Python tracker _

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f445c125aca3 by Nick Coghlan in branch '2.7': Issue #13237: remove some details that only apply to the 3.x version of this module and cross reference the relocated warning about the dangers of invoking the shell with untrusted input http://hg.pyth

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b4df6701c4d by Nick Coghlan in branch '2.7': Issue #13237: further updates to subprocess documentation http://hg.python.org/cpython/rev/0b4df6701c4d -- ___ Python tracker

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: > Yuval Greenfield added the comment: > Another option btw is to use utf-16 UTF-8, UTF-16 or any encoding different than the ANSI code page are not an option. The Windows bytes API expect filenames encoded to the ANSI code page. os.listdir() would raise an e

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield added the comment: It won't break existing code. Ignoring this problem here only moves the exception to whenever the data returned is first used. Any code this fix "breaks" is already broken. -- ___ Python tracker

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-10-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: I scanned through the libs for Python 2.7, 3.2, and 3.3 and there is no construction of HTTPError that does not pass a string for msg. I believe it would be reasonable to alias reason to msg. I'll put together the changesets. --

[issue13267] Add an option to disable importing orphaned bytecode files

2011-10-26 Thread Nick Coghlan
Nick Coghlan added the comment: This feature is unnecessary now that PEP 3147 has been adopted. The way it works in 3.2+ is that orphaned bytecode files inside __pycache__ are always ignored, while bytecode files that live directly in the source directories are always imported. This handles

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: On Wed, Oct 26, 2011 at 3:36 PM, Yuval Greenfield wrote: > If the current situation isn't fixed though - you just can't use the > resulting path for almost anything. Do you have a use case Ishimoto? I don't have use case. But does raising UnicodeEncodeError

[issue13267] Add an option to disable importing orphaned bytecode files

2011-10-26 Thread Petri Lehtinen
New submission from Petri Lehtinen : This has been discussed in python-ideas approx. two years ago: http://mail.python.org/pipermail/python-ideas/2009-December/006635.html It seems to me that having an opt-in command-line option, environment variable and sys variable to disable loading orphane

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield added the comment: Another option btw is to use utf-16, which will work but it's a bit ugly as well: >>> os.listdir(os.path.abspath(u'.').encode('utf-16')) [] >>> os.path.abspath(u'.') u'C:\\Users\\alon\\Desktop\\\u05e9\u05dc\u05d5\u05dd' >>> os.path.abspath(u'.').encode('utf-