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

2021-03-23 Thread D Levine
D Levine added the comment: I think that would make the most sense, yes. -- ___ Python tracker <https://bugs.python.org/issue43607> ___ ___ Python-bugs-list m

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

2021-03-23 Thread D Levine
D Levine added the comment: I really meant 255 characters not 256 because I was leaving three for ":/". I suppose the most reasonable behavior is to strip out the "\\?\" before attempting the conversion as the path is sensible and parsable without that, as opposed to

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

2021-03-23 Thread D Levine
Change by D Levine : -- type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue43607> ___ ___ Python-bugs-list mailing list Unsubscrib

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

2021-03-23 Thread D Levine
New submission from D Levine : Windows file paths are limited to 256 characters, and one of Windows's prescribed methods to address this is to prepend "\\?\" before a Windows absolute path (see: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-