Roundup Robot added the comment:
New changeset 8ac9c3754d33 by R David Murray in branch 'default':
whatsnew: encoding is now optional in PYTHONIOENCODING (#18818)
http://hg.python.org/cpython/rev/8ac9c3754d33
--
___
Python tracker
Roundup Robot added the comment:
New changeset c7fdb0637d0b by Serhiy Storchaka in branch 'default':
Issue #18818: The encodingname part of PYTHONIOENCODING is now optional.
http://hg.python.org/cpython/rev/c7fdb0637d0b
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Thank you Ezio and Vajrasky for the review.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
type: behavior - enhancement
versions: -Python 2.7, Python 3.3
___
Python tracker
Serhiy Storchaka added the comment:
Nick, could you help me with documentation? I'm sure my wording needs improving.
And there is one question left. Is this change appropriate for 2.7 and 3.3, or
only for 3.4?
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
___
New submission from Serhiy Storchaka:
$ PYTHONIOENCODING= ./python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding:
Aborted (core dumped)
As a consequence we can't set only the error handler.
$ PYTHONIOENCODING=:surrogateescape ./python
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file31432/empty_pythonioencoding.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file31433/empty_pythonioencoding.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
Nick Coghlan added the comment:
Patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
Patch looks good to me, but you have to update Doc/using/cmdline.rst,
at least to add a versionchanged section.
Tests would also be nice :-)
I really like the the PYTHONIOENCODING=:surrogateescape use case!
--
___
Serhiy Storchaka added the comment:
Second variant of the patch also supports empty error handler as the default
error handler (i.e. strict).
$ PYTHONIOENCODING=ascii: ./python
Python 3.4.0a1+ (default:5b5ef012cd4e+, Aug 23 2013, 10:18:51)
[GCC 4.6.3] on linux
Type help, copyright, credits or
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
Serhiy Storchaka added the comment:
Here is a patch with tests and documentation. For the documentation I hope on
your help.
--
Added file: http://bugs.python.org/file31447/empty_pythonioencoding_3.patch
___
Python tracker rep...@bugs.python.org
13 matches
Mail list logo