Author pacujo
Recipients pacujo
Date 2018-05-31.17:19:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za>
In-reply-to
Content
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 pathname were to contain a NUL because most test suites would not try to cover such a pathname.

I propose os.path.exists() should return False even in this case.
History
Date User Action Args
2018-05-31 17:19:25pacujosetrecipients: + pacujo
2018-05-31 17:19:25pacujosetmessageid: <1527787165.92.0.682650639539.issue33721@psf.upfronthosting.co.za>
2018-05-31 17:19:25pacujolinkissue33721 messages
2018-05-31 17:19:25pacujocreate