Author vstinner
Recipients izbyshev, koobs, rudolphf, vstinner, Владислав Ярмак
Date 2019-04-17.16:33:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555518827.05.0.145843616447.issue32849@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-04-17 16:33:47vstinnersetrecipients: + vstinner, koobs, izbyshev, rudolphf, Владислав Ярмак
2019-04-17 16:33:47vstinnersetmessageid: <1555518827.05.0.145843616447.issue32849@roundup.psfhosted.org>
2019-04-17 16:33:47vstinnerlinkissue32849 messages
2019-04-17 16:33:46vstinnercreate