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 ygingras
Recipients ygingras
Date 2008-05-19.20:14:27
SpamBayes Score 0.13104837
Marked as misclassified No
Message-id <1211228076.96.0.534347381118.issue2920@psf.upfronthosting.co.za>
In-reply-to
Content
EnvironmentError and its subclass OSError add the value of errno in 
their error message.  This value is an integer but the specific value 
in an implementation detail and the C runtime recommends that 
programmers use the symbolic values instead.  Ex: one should use 
ENODATA instead of 61.  For the same reason, the Python interpreter 
should try to return the symbolic value or errno when possible.

The attached patch replaces errno in EnvironmentError.__str__() by its 
symbolic value when possible.
History
Date User Action Args
2008-05-19 20:14:39ygingrassetspambayes_score: 0.131048 -> 0.13104837
recipients: + ygingras
2008-05-19 20:14:37ygingrassetspambayes_score: 0.131048 -> 0.131048
messageid: <1211228076.96.0.534347381118.issue2920@psf.upfronthosting.co.za>
2008-05-19 20:14:34ygingraslinkissue2920 messages
2008-05-19 20:14:33ygingrascreate