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 brett.cannon
Recipients brett.cannon, dgreiman, eric.smith, orsenthil, ztane
Date 2016-10-14.21:36:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476480985.22.0.23218719088.issue28425@psf.upfronthosting.co.za>
In-reply-to
Content
Since /dev/null is not a file according to os.path.isfile(), I'm going to close this as not a bug.

And to answer Antti's question, it's because the semantics come from the original C code where EAFP is not pleasant.
History
Date User Action Args
2016-10-14 21:36:25brett.cannonsetrecipients: + brett.cannon, orsenthil, eric.smith, dgreiman, ztane
2016-10-14 21:36:25brett.cannonsetmessageid: <1476480985.22.0.23218719088.issue28425@psf.upfronthosting.co.za>
2016-10-14 21:36:25brett.cannonlinkissue28425 messages
2016-10-14 21:36:25brett.cannoncreate