Message143958
In "help(open)" I see this:
"""
file is either a text or byte string giving the name (and the path
if the file isn't in the current working directory) of the file to
be opened or an integer file descriptor of the file to be
wrapped. (If a file descriptor is given, it is closed when the
returned I/O object is closed, unless closefd is set to False.)
"""
So, file descriptors are allowed.
The interpreter shutdowns because your are closing STDIN. This is correct, in my opinion.
Closing this bug as "invalid". If you think this is an error, feel free to argue. |
|
Date |
User |
Action |
Args |
2011-09-13 12:03:23 | jcea | set | recipients:
+ jcea, pitrou, benjamin.peterson, stutzbach, ezio.melotti, i386x |
2011-09-13 12:03:23 | jcea | set | messageid: <1315915403.21.0.442851533911.issue12969@psf.upfronthosting.co.za> |
2011-09-13 12:03:22 | jcea | link | issue12969 messages |
2011-09-13 12:03:22 | jcea | create | |
|