[issue19050] crash while writing to a closed file descriptor
Daniel Rohlfing
report at bugs.python.org
Thu Sep 19 15:00:44 CEST 2013
Daniel Rohlfing added the comment:
the correct snippet is:
> fd = io.open(sys.stdout.fileno(), 'wb')
> fd.close()
> sys.stdout.write("now writing on stdout will cause a crash")
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19050>
_______________________________________
More information about the Python-bugs-list
mailing list