A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-April/143946.html below:

[Python-Dev] pathlib - current status of discussions

[Python-Dev] pathlib - current status of discussions [Python-Dev] pathlib - current status of discussionsEthan Furman ethan at stoneleaf.us
Mon Apr 11 17:58:43 EDT 2016
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~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4