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.
resolution: -> not a bug
status: open -> closed
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list