[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

Eryk Sun report at bugs.python.org
Tue Mar 23 23:26:21 EDT 2021


Eryk Sun <eryksun at gmail.com> added the comment:

> I suppose the most reasonable behavior is to strip out the "\\?\" before 
> attempting the conversion as the path is sensible and parsable without 

Okay, so you're not looking to preserve the fact that it's a \\?\ verbatim path in the URI. You just want to automatically convert from verbatim \\?\X: or \\?\UNC\server\share to normal form. Devices other than drive letters and "UNC" wouldn't be supported.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43607>
_______________________________________


More information about the Python-bugs-list mailing list