Christian Heimes added the comment:
I recommend against changing the code so late in the Python 2.7 release cycle.
A change in behavior is too confusing.
And it's not a bug but a design decision, too. Over five years ago I implement
parts of the IO interaction with the operating system for Python 3.0. I
deliberately did NOT port modifications to 2.6.
If you want to get Python 3.x style print() behavior in Python 2.7 you can have
it already:
from __future__ import print_function
import sys
if sys.executable.endswith("pythonw.exe"):
sys.stdout = sys.stdout = None
print("can handle sys.stdout = None just fine.")
----------
nosy: +christian.heimes
resolution: -> wont fix
stage: -> committed/rejected
status: open -> pending
type: -> behavior
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue706263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com