Jesús Cea Avión <j...@jcea.es> added the comment: Under Python 3, open(integer) tries to open a file descriptor.
So, "f=open(0,...); f.close()" closes stdin, rightly shutting down the interpreter. It is not a crash, it is a shutdown. Tested under Linux. The point is if opening a file descriptor is actually supported in Python 3... In python 2.7 I get this: "TypeError: coercing to Unicode: need string or buffer, int found". ---------- nosy: +jcea _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12969> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com