New submission from pacujo :
os.path.exists() returns True or False for all imaginable string arguments
except for one that contains NUL ("\0") (Linux). This behavior is not
documented in the library. Moreover, it can easily lead to accidents if an
externally supplied pathna
pacujo added the comment:
Eryk Sun:
> I only meant that, as an honest error, it has to be ValueError. I didn't
> think about raising a fake OSError.
>
> Note that I didn't say the ValueError shouldn't be ignored by
> os.path.exists (et al). In the spirit of the c