Message143964
fd support is intentional, see Modules/_io/_iomodule.c:318
OTOH closing sys.stdin doesn't exit Python, so I'm not sure why closing fd 0 should.
I was also thinking about possible security implications of this, but if someone tries to pass '0' as filename, it will most likely be passed to open as a string. |
|
Date |
User |
Action |
Args |
2011-09-13 12:56:23 | ezio.melotti | set | recipients:
+ ezio.melotti, jcea, pitrou, benjamin.peterson, stutzbach, i386x |
2011-09-13 12:56:23 | ezio.melotti | set | messageid: <1315918583.12.0.837309207439.issue12969@psf.upfronthosting.co.za> |
2011-09-13 12:56:22 | ezio.melotti | link | issue12969 messages |
2011-09-13 12:56:22 | ezio.melotti | create | |
|