On 10:33 am, solip...@pitrou.net wrote:
On Thu, 22 Jul 2010 17:50:00 +0900
"Stephen J. Turnbull" <step...@xemacs.org> wrote:
I think that's Antoine's PEP 3151. Interestingly, he doesn't mention
EINVAL at all.
http://www.python.org/dev/peps/pep-3151/
That's right. It is based on a survey of existing exception-catching
code in the stdlib. There's only one match in the whole Lib/ subtree:
$ grep -r EINVAL Lib/
Lib/plat-sunos5/STROPTS.py:968:EINVAL = 22
I guess EINVAL would most often indicate a programming error, which is
why it doesn't get handled specifically in except clauses.
For setgroups it means you exceeded a platform-specific limit. On
Windows, for non-blocking connect, it means wait a little longer.
Jean-Paul
_______________________________________________
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