Michele Orrù added the comment: Note: on python3, the error is File "/[...]/cpython/Lib/genericpath.py", line 41, in isdir st = os.stat(s) TypeError: embedded NUL character (same exception but different message.)
I don't know where to start fixing, because the documentation for os.stat says "Perform the equivalent of a stat() system call on the given path.", which is not exactly the correct behavior in this case. I see that $ printf "/\00" | xargs stat stat()s correctly the root directory, and $ printf "/\00tmp" | xargs stat stat()s still '/'. So, is this a bug of os.stat? Noising some coredevs. ---------- nosy: +eric.araujo, ezio.melotti, r.david.murray _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16083> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com