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~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
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