Re: [Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)

2016年4月09日 00:10:10 -0700

os.DirEntry doesn't support bytes: os.scandir() only accept str. It's a
deliberate choice.
I strongly suggest to only support Unicode for filenames in Python 3. So
__fspath__ must only return str, or a TypeError must be raised.
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to