Serhiy Storchaka added the comment: At first glance issue27186-os_path_t.patch looks good.
But with the patch applied the error message in case of incorrect argument type is always "expected str, bytes or os.PathLike object, not ...". Currently it is more detailed and specific: contains the function and the argument names, and is aware that some functions accept an integer or None. I think the best way is to inline the code of PyOS_FSPath in path_converter. Also we first resolve issue26800. ---------- dependencies: +Don't accept bytearray as filenames part 2 _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue26027> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
