[Python-Dev] EINVAL (original) (raw)
exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Jul 22 15:30:24 CEST 2010
- Previous message: [Python-Dev] EINVAL
- Next message: [Python-Dev] Python signal processing question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] EINVAL
- Next message: [Python-Dev] Python signal processing question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]