On Thu, 21 Jun 2012 15:04:17 +0200 Christian Heimes <li...@cheimes.de> wrote: > > How about adding keyword support to OSError and derive the strerror from > errno if the second argument is not given?
That's not the original behaviour: Python 3.2.2+ (3.2:9ef20fbd340f, Oct 15 2011, 21:22:07) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> e = OSError(5) >>> e.errno >>> e.strerror >>> str(e) '5' I don't mind making this particular compatibility-breaking change, though. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com