Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12762
___
___
Mark Lawrence added the comment:
It doesn't bother me that Python programmers can write unportable code, what
with consenting adults and all that. Further the implementation of PEP 3151 in
3.3 allows specific exceptions to be caught, e.g. FileNotFoundError. I can't
see anybody allowing the
R. David Murray added the comment:
The enum module that is likely to land in 3.4 will allow us to fix this. We
can discuss whether we want to just display the name, or both the name and the
value. Omitting it would indeed be bad, IMO.
--
nosy: +r.david.murray
stage: - needs patch
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12762
___
___
Python-bugs-list
Barry A. Warsaw ba...@python.org added the comment:
I tend to agree that the errno is much less useful than the symbolic name. The
former is useful and will be available as an attribute, but the latter should
be used in the str. The change will probably break scads of doctests, but is
New submission from Jakub Wilk jw...@jwilk.net:
It is a surprisingly common error in 3rd party code to write something like
this:
try:
eggs()
except OSError, e:
if e.errno == 17:
ham()
This is wrong, because according to POSIX[0], “only […] symbolic names should
be
Jakub Wilk jw...@jwilk.net added the comment:
And the lost footnote is:
[0]
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_03.html#tag_02_03
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12762