This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, vstinner
Date 2013-08-21.23:08:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377126530.2480.1.camel@fsol>
In-reply-to <1377126467.82.0.012503473328.issue18804@psf.upfronthosting.co.za>
Content
> is_valid_fd() of Python/pythorun.c should use fstat() to check if a
> file descriptor is valid, instead of duplicating it using dup() (and
> then closing it).

Why should it?
fstat() may be expensive, while dup() is cheap.
History
Date User Action Args
2013-08-21 23:08:58pitrousetrecipients: + pitrou, vstinner
2013-08-21 23:08:58pitroulinkissue18804 messages
2013-08-21 23:08:57pitroucreate