This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Max Staff
Recipients Max Staff, pitrou, r.david.murray
Date 2017-06-12.21:37:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497303446.49.0.992213497788.issue30641@psf.upfronthosting.co.za>
In-reply-to
Content
Yes I know about the errno. There would be two ways to resolve this:

One way would be by introducing a new exception class which would be nice because it's almost impossible to reliably check the allowed filename length (except for trial and error) and I have quite a few functions where I would want the error to propagate further as long as it's not an ENAMETOOLONG.

The other way would be by introducing a new syntax feature ("except OSError as e if e.errno == errno.ENAMETOOLONG:") but I don't think that that approach is reasonable.
History
Date User Action Args
2017-06-12 21:37:26Max Staffsetrecipients: + Max Staff, pitrou, r.david.murray
2017-06-12 21:37:26Max Staffsetmessageid: <1497303446.49.0.992213497788.issue30641@psf.upfronthosting.co.za>
2017-06-12 21:37:26Max Stafflinkissue30641 messages
2017-06-12 21:37:26Max Staffcreate