This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Dolda2000, lazka, vstinner
Date 2017-12-18.14:36:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513607761.53.0.213398074469.issue29042@psf.upfronthosting.co.za>
In-reply-to
Content
> A path containing an embedded NUL character simply cannot name an existing file, and therefore os.path.exists should return False for such a path.

I disagree. Python doesn't call the syscall and so must raise a different exception.

You must not pass a path with embedded NULL character/byte. That's all.

Write your own wrapper to os.path.exists() if you want to a different behaviour.
History
Date User Action Args
2017-12-18 14:36:01vstinnersetrecipients: + vstinner, Dolda2000, lazka
2017-12-18 14:36:01vstinnersetmessageid: <1513607761.53.0.213398074469.issue29042@psf.upfronthosting.co.za>
2017-12-18 14:36:01vstinnerlinkissue29042 messages
2017-12-18 14:36:01vstinnercreate