[Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?) (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sat Apr 9 03:07:01 EDT 2016
- Previous message (by thread): [Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)
- Next message (by thread): [Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160409/307a16e3/attachment.html>
- Previous message (by thread): [Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)
- Next message (by thread): [Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]