[issue19717] resolve() fails when the path doesn't exist

Martin Wagner report at bugs.python.org
Tue Nov 8 06:43:56 EST 2016


Martin Wagner added the comment:

i have a use-case that requires a behavior that is referenced above as --canonicalize-missing. essentially i need to get rid of relative parts in a path representation regardless the actual filesystem.

my conclusion was that PurePath could provide that with a 'normpath' method, reflecting os.path.normpath's functionality.

(that's from a user perspective, i haven't looked at any implementation details of the pathlib module.)

----------
nosy: +mwagner

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19717>
_______________________________________


More information about the Python-bugs-list mailing list