[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-06-14 Thread pacujo
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

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-05-31 Thread pacujo
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