[Python-Dev] Defining a path protocol (was: When should pathlib stop being provisional?)
Ethan Furman
ethan at stoneleaf.us
Sat Apr 9 03:16:29 EDT 2016
More information about the Python-Dev mailing list
Sat Apr 9 03:16:29 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 ]
On 04/09/2016 12:07 AM, Victor Stinner wrote: > os.DirEntry doesn't support bytes: os.scandir() only accept str. It's a > deliberate choice. 3.5.0 scandir supports bytes: --> huh = list(scandir(b'.')) --> huh [<DirEntry b'minicourse-ajax-project'>, <DirEntry b'js'>, <DirEntry b'__MACOSX'>, <DirEntry b'index.xaml'>, <DirEntry b'css'>, <DirEntry b'index.html'>] --> huh[0].path b'./minicourse-ajax-project' -- ~Ethan~
- 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 ]
More information about the Python-Dev mailing list