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 <rep...@bugs.python.org> <http://bugs.python.org/issue27184> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com