Message340414
In short, Python 2.7 doesn't seem to be affected by fstat/dup issues.
Python 2.7 doesn't check if file descriptors 0, 1 and 2 at startup. Python 2 uses PyFile_FromFile() to create sys.stdin, sys.stdout and sys.stderr which create a "file" object. The function calls fstat(fd) but it ignores the error: fstat() is only used to fail if the fd is a directory.
Python 2.7 doesn't have the is_valid_fd() function. |
|
| Date |
User |
Action |
Args |
| 2019-04-17 16:33:47 | vstinner | set | recipients:
+ vstinner, koobs, izbyshev, rudolphf, Владислав Ярмак |
| 2019-04-17 16:33:47 | vstinner | set | messageid: <1555518827.05.0.145843616447.issue32849@roundup.psfhosted.org> |
| 2019-04-17 16:33:47 | vstinner | link | issue32849 messages |
| 2019-04-17 16:33:46 | vstinner | create | |
|