Python Newbie

Chris Angelico rosuav at gmail.com
Sat Feb 23 22:38:47 CET 2013


On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber
<wlfraed at ix.netcom.com> wrote:
>         Error codes under DEC VAX/VMS used odd integers for
> "success/information" and even integers for "warning/error" (been too
> many years, I think positive integers were success/warning, negative
> integers were information/error; I could also be wrong on which set were
> even... if 0 were no-info/success then odd were errors and even were
> success)).

Sounds like IBM DB2 and sqlca.sqlcode - 0 for success, <0 for error,
>0 for warning (or in some cases "status" - an SQLCODE of 100 means
"end of result set", which isn't exactly an error but you can't fetch
any more from it; it's akin to Python raising StopIteration to
terminate a for loop).

ChrisA



More information about the Python-list mailing list