[issue1653416] print >> f, "Hello" produces no error: normal?

Christian Heimes report at bugs.python.org
Sat Jan 12 06:10:05 CET 2008


Christian Heimes added the comment:

On Linux both 2.5 and 2.6 are raising an exception:

>>> f = open("/etc/passwd")
>>> print >>f, "Hello"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 9] Bad file descriptor

----------
nosy: +tiran

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1653416>
_____________________________________


More information about the Python-bugs-list mailing list