Message308564
> 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. |
|
Date |
User |
Action |
Args |
2017-12-18 14:36:01 | vstinner | set | recipients:
+ vstinner, Dolda2000, lazka |
2017-12-18 14:36:01 | vstinner | set | messageid: <1513607761.53.0.213398074469.issue29042@psf.upfronthosting.co.za> |
2017-12-18 14:36:01 | vstinner | link | issue29042 messages |
2017-12-18 14:36:01 | vstinner | create | |
|