On 10:33 am, solipsis at pitrou.net wrote: >On Thu, 22 Jul 2010 17:50:00 +0900 >"Stephen J. Turnbull" <stephen at 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4