[Python-Dev] pathlib - current status of discussions (original) (raw)
Ethan Furman ethan at stoneleaf.us
Mon Apr 11 17:58:43 EDT 2016
- Previous message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Next message (by thread): [Python-Dev] pathlib - current status of discussions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
name:
We are down to two choices:
- fspath, or
- fspathname
The final choice I suspect will be affected by the choice to allow (or not) bytes.
method or attribute:
method
built-in:
Almost - we'll put it in the os module
add to str:
No, not all strings are paths.
add to C API:
Yes. Possible names include PyUnicode_FromFSPath and PyObject_Path -- again, the choice of bytes inclusion will affect the final choice of name.
add a Path ABC:
undecided
Sticking points:
Do we allow bytes to be returned from os.fspath()? If yes, then do we allow bytes from fspath()?
--
Ethan
- Previous message (by thread): [Python-Dev] Maybe, just maybe, pathlib doesn't belong.
- Next message (by thread): [Python-Dev] pathlib - current status of discussions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]