Message143957
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". |
|
Date |
User |
Action |
Args |
2011-09-13 11:57:46 | jcea | set | recipients:
+ jcea, pitrou, benjamin.peterson, stutzbach, ezio.melotti, i386x |
2011-09-13 11:57:46 | jcea | set | messageid: <1315915066.23.0.943092519913.issue12969@psf.upfronthosting.co.za> |
2011-09-13 11:57:45 | jcea | link | issue12969 messages |
2011-09-13 11:57:45 | jcea | create | |
|