Brett Cannon added the comment: 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. ---------- nosy: +brett.cannon resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28425> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com