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

2011-10-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: It appears the Python 3.2 docs no longer include documentation for URLError Both URLError and HTTPError are documented in 3.2 and 3.3: http://docs.python.org/py3k/library/urllib.error.html#urllib.error.URLError

[issue13263] Group some os functions in submodules

2011-10-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I would prefer to keep the shared prefix even if we move functions to a new module. Python refers usually to the C documentation for the details of a function. If we rename a function, it becomes more difficult to get the manual

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

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: I use python a lot with Hebrew and many websites have internationalization which may involve unicode paths. I agree that saying unicode paths are rare is inaccurate. If the current situation isn't fixed though - you just can't use the

[issue13263] Group some os functions in submodules

2011-10-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It would be fine for me to rename os.sched_get_priority_max() to os.sched.get_priority_max(). os.sched.sched_get_priority_max() is a bit redundant, and I think it's not to difficult to figure out that os.sched.get_priority_max()

[issue13266] Support for unwrapping __wrapped__ functions in 'inspect' module

2011-10-26 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: I just got bitten by the singularly unhelpful results of doing inspect.getsource(generator_context_manager). Now that @functools.wraps adds the __wrapped__ attribute, perhaps inspect.getsource(f) should follow the wrapper chain by default?

[issue13266] Support for unwrapping __wrapped__ functions in 'inspect' module

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___

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

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: After a little thought, I think the explicit unwrap function is the only viable approach. Doing the unwrapping implicitly just has too many nasty corner cases to track down to ensure we aren't losing existing functionality. I'd also suggest

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

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com 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'

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

2011-10-26 Thread Petri Lehtinen
New submission from Petri Lehtinen pe...@digip.org: 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

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

2011-10-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: On Wed, Oct 26, 2011 at 3:36 PM, Yuval Greenfield rep...@bugs.python.org 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

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

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-10-26 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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. --

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

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com 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

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Yuval Greenfield ubershme...@gmail.com 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

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[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 victor.stin...@haypocalc.com: -- 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 Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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: -

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 rep...@bugs.python.org

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___ Python-bugs-list

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- hgrepos: +86 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___ ___ Python-bugs-list mailing list

[issue6397] Implementing Solaris poll in the select module

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

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23524/d014fd90a487.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13268] assert

2011-10-26 Thread Alexander Myodov
New submission from Alexander Myodov amyo...@gmail.com: 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

[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 j...@jcea.es: 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:

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Distutils nosy: +eric.araujo, ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13269 ___

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue13269

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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 j...@jcea.es 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
Changes by Jesús Cea Avión j...@jcea.es: -- Removed message: http://bugs.python.org/msg146438 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13269 ___

[issue1011113] Make “install” find the build_base directory

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue13268] assert statement violates the documentation

2011-10-26 Thread Alexander Myodov
Changes by Alexander Myodov amyo...@gmail.com: -- title: assert - assert statement violates the documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13268 ___

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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. --

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I've been able to consistently reproduce the test_resources failure on Ubuntu 11.10 64-bit, FWIW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193

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

2011-10-26 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12657 ___ ___

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

2011-10-26 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___ Python-bugs-list

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

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___ ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es 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

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13236] unittest needs more flush calls

2011-10-26 Thread Peter Eisentraut
Peter Eisentraut pete...@gmx.net 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

[issue13268] assert statement violates the documentation

2011-10-26 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- components: +Interpreter Core nosy: +petri.lehtinen versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13268 ___

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

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___

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

2011-10-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-26 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue10860] Handle empty port after port delimiter in httplib

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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':

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

2011-10-26 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com 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

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

2011-10-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2011-10-26 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com 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

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

2011-10-26 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com 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 rep...@bugs.python.org

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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,

[issue13270] all classes are new style

2011-10-26 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: 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

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Westley Martínez
Westley Martínez aniko...@gmail.com 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 rep...@bugs.python.org

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I have decided to segregate select.devpoll to a separate object, like select.epoll. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[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 joshc...@gmail.com: 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'),

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Solved points 1, 3 and 4. 2 will be solved with the documentation. 5 and 6 still pending. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23532/0b701eb5e9e3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Documentation added. That solves 2 and 5. I still have to solve 6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[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 j...@jcea.es: -- title: Implementing Solaris poll in the select module - Implementing Solaris /dev/poll in the select module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397

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

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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:

[issue13216] Add cp65001 codec

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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)

[issue6058] Add cp65001 to encodings/aliases.py

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6058 ___

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12281 ___

[issue10920] cp65001, PowerShell, Python crash.

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___

[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 e...@trueblade.com: -- nosy: +bethard, eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13271 ___ ___

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue13268] assert statement violates the documentation

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13268 ___

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

2011-10-26 Thread Alister Cordiner
Alister Cordiner acordi...@gmail.com 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