[Python-Dev] [Python-checkins] cpython (merge 3.2 -> default): Make TextIOWrapper's documentation clearer by copying the newline argument's
Victor Stinner
victor.stinner at gmail.com
Sat Aug 4 20:51:58 CEST 2012
2012/8/4 Chris Jerdonek <chris.jerdonek at gmail.com>:
> On Fri, Aug 3, 2012 at 3:59 PM, antoine.pitrou
> <python-checkins at python.org> wrote:
>> http://hg.python.org/cpython/rev/f17a1410ebe5
>> changeset: 78401:f17a1410ebe5
>> summary:
>> Make TextIOWrapper's documentation clearer by copying the newline argument's description from open().
>
> Now that this change is made, it may make sense to update the
> subprocess documentation to reference TextIOWrapper's documentation
> instead of open()'s (since use of the 'U' flag to open() is
> discouraged in new code).
>
> "All line endings will be converted to '\n' as described for the
> universal newlines 'U' mode argument to open()."
>
> (from http://docs.python.org/dev/library/subprocess.html#frequently-used-arguments
> )
Good idea, can you please open an issue? The documentation is wrong:
UTF-8 is not used, it's the locale encoding.
Victor
More information about the Python-Dev
mailing list