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.

作者 cvrebert
收信人 Arfrever, Hobson.Lane, Roman.Evstifeev, benjamin.peterson, cvrebert, eric.araujo, ganadist, giampaolo.rodola, r.david.murray, rosslagerwall, vstinner
日期 2012-04-23.12:49:07
SpamBayes Score -1.0
Marked as misclassified
Message-id <1335185348.36.0.672444948294.issue3177@psf.upfronthosting.co.za>
In-reply-to
内容
No, it isn't. Changing the `IOError(errno.ENOENT, "...`s to `FileNotFoundError("...`s would half fix it.

The other half, the `OSError(errno.ENOSYS)`s, has a FIXME for what's the right error to raise in that case ("no application associated with files of this type"). I have no idea myself. None of the new PEP 3151 errors apply. Nor did any of the errnos strictly speaking AFAICT; ENOSYS was the closest approximation I could find. Thoughts? Custom error class? Different errno? Something else?
历史
日期 用户 动作 参数
2012-04-23 12:49:08cvrebert修改recipients: + cvrebert, vstinner, giampaolo.rodola, benjamin.peterson, eric.araujo, ganadist, Arfrever, r.david.murray, rosslagerwall, Roman.Evstifeev, Hobson.Lane
2012-04-23 12:49:08cvrebert修改messageid: <1335185348.36.0.672444948294.issue3177@psf.upfronthosting.co.za>
2012-04-23 12:49:07cvrebert链接issue3177 messages
2012-04-23 12:49:07cvrebert创建