[Python-bugs-list] [ python-Bugs-800828 ] Doc bug in PEP-0278
SourceForge.net
noreply at sourceforge.net
Thu Sep 4 20:23:50 EDT 2003
Bugs item #800828, was opened at 2003-09-04 21:18
Message generated for change (Settings changed) made by logistix
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=800828&group_id=5470
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: logistix (logistix)
>Assigned to: Jack Jansen (jackjansen)
Summary: Doc bug in PEP-0278
Initial Comment:
PEP 278 suggests that the proper way to test for
universal newline support is 'hasattr
(sys.stdout, "newline")' However, this doesn't work too
well when sys.stdout is overridden. One big example of
this is PythonWin's sys.stdout, which doesn't have an
newlines attribute even when it is supported by
python23.dll.
Testing 'hasattr(file, "newlines")' seems to be a more
reliable way to test.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=800828&group_id=5470
More information about the Python-bugs-list
mailing list