[issue12762] EnvironmentError_str contributes to unportable code

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12762 ___ ___

[issue12762] EnvironmentError_str contributes to unportable code

2013-04-18 Thread Mark Lawrence
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

[issue12762] EnvironmentError_str contributes to unportable code

2013-04-18 Thread R. David Murray
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

[issue12762] EnvironmentError_str contributes to unportable code

2011-10-30 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12762 ___ ___ Python-bugs-list

[issue12762] EnvironmentError_str contributes to unportable code

2011-08-29 Thread Barry A. Warsaw
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

[issue12762] EnvironmentError_str contributes to unportable code

2011-08-16 Thread Jakub Wilk
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

[issue12762] EnvironmentError_str contributes to unportable code

2011-08-16 Thread Jakub Wilk
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