[issue19050] crash while writing to a closed file descriptor

2013-09-19 Thread Daniel Rohlfing
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 <h

[issue19050] crash while writing to a closed file descriptor

2013-09-19 Thread Daniel Rohlfing
New submission from Daniel Rohlfing: This snippet let my interpreter crash immediately: > import sys, io > io.open(sys.stdout.fileno(), 'wb') > fd.close() > sys.stdout.write("now writing on stdout will cause a crash") That's happened on Python 2.7.5 (defaul