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 <>
Python-bugs-list mailing list

Reply via email to