[issue27184] Support path objects in the ntpath module
Eryk Sun
report at bugs.python.org
Thu Jun 2 21:36:08 EDT 2016
New submission from Eryk Sun:
nt is the module name for posixmodule.c on Windows, so I'm changing the title to reference ntpath instead.
Regarding nt, two of its built-in functions are exposed directly in ntpath. _isdir is imported as isdir, so it needs a wrapper to support __fspath__. Only pathlib uses _getfinalpathname, so for now I think it can be handled there. There's also nt._getdiskusage, which is only used by shutil.disk_usage. For some reason the PEP doesn't mention updating shutil to support __fspath__.
----------
components: +Library (Lib), Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
title: Support path objects in the nt module -> Support path objects in the ntpath module
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27184>
_______________________________________
More information about the Python-bugs-list
mailing list