[issue22147] PosixPath() constructor should not accept strings with embedded NUL bytes

Irit Katriel report at bugs.python.org
Fri Sep 10 18:26:42 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

If we do this then there are tests tha break, for instance test_is_symlink has this:

self.assertIs((P / 'fileA\x00').is_file(), False)

----------
nosy: +iritkatriel
versions: +Python 3.11 -Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22147>
_______________________________________


More information about the Python-bugs-list mailing list