STINNER Victor <victor.stin...@gmail.com> added the comment:

> 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.

----------
nosy: +vstinner
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to