[Python-Dev] File system path PEP, part 2 (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Fri May 13 00:04:24 EDT 2016


On 13 May 2016 at 06:53, Brett Cannon <brett at python.org> wrote:

Second draft that takes Guido's comments into consideration. The biggest change is os.fspath() now returns whatever path.fspath() returns instead of restricting it to only str.

Minor changes: - Renamed the C function to PyOSFSPath() - Added an Implementation section with a TODO list - Bunch of things added to the Rejected Ideas section

+1 for this version from me, as it means we have:

That more strongly nudges people towards "use pathlib if you want to ensure cross-platform friendly path handling", which is an outcome I'm fine with.

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list