[New-bugs-announce] [issue27729] Provide a better error message when the file path is too long on Windows

Brett Cannon report at bugs.python.org
Wed Aug 10 18:59:55 EDT 2016


New submission from Brett Cannon:

Windows has a max path length when the path doesn't start with r'\\?\'. When you hit that limit you get a FileNotFoundError but no explanation that it was because of some file path length. It would be nice to clarify this case in the exception message (probably by changing PyErr_SetExcFromWindowsErrWithFilenameObjects() in Python/errors.c).

----------
components: Windows
messages: 272382
nosy: brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: test needed
status: open
title: Provide a better error message when the file path is too long on Windows
type: behavior

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


More information about the New-bugs-announce mailing list