This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients benjamin.peterson, ezio.melotti, i386x, jcea, pitrou, stutzbach
Date 2011-09-13.11:57:45
SpamBayes Score 2.3622232e-07
Marked as misclassified No
Message-id <1315915066.23.0.943092519913.issue12969@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2011-09-13 11:57:46jceasetrecipients: + jcea, pitrou, benjamin.peterson, stutzbach, ezio.melotti, i386x
2011-09-13 11:57:46jceasetmessageid: <1315915066.23.0.943092519913.issue12969@psf.upfronthosting.co.za>
2011-09-13 11:57:45jcealinkissue12969 messages
2011-09-13 11:57:45jceacreate