Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; 'fetch': 0.09; 'integers': 0.09; 'it;': 0.09; 'cases': 0.15; 'dec': 0.15; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'odd': 0.17; '(or': 0.18; 'feb': 0.19; 'terminate': 0.22; 'errors': 0.23; 'header:In-Reply-To:1': 0.25; 'skip:" 20': 0.26; 'am,': 0.27; 'ibm': 0.27; 'message-id:@mail.gmail.com': 0.27; 'error': 0.30; 'could': 0.32; 'raising': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'wrong': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'too': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'positive': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'think': 0.40; 'success,': 0.62; 'skip:n 10': 0.63; 'more': 0.63; 'sounds': 0.71; '100': 0.78; '2013': 0.84; 'dennis': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=sfSjEU/XySOhjHC4c5JfSIdyzZBm/Az9UWSyVAVbtVg=; b=nsdVPpOiil2WteYlYEv1KQ9qvHFB2TM/pOQ+7rC6S5j0FFK80FYyS0Eo/xp80qVD70 rG1PBnbmvSlE+8z1xWQZtwHfvg7UcCLaT6OdRUnPnggdx/mh+UzwVtW0UNbxiwh7U6WQ 3Suof5Q+ojHZ9hT5cJ3jm2NNdBrc07iZjZFhEmmOOc5C6RiqjVz4TOViGFCZw24SScy1 tK6w1ZBPHF+uuIDIPg2GdwuDlO+iwvOyWoo57vS3025dfQCBdHBoDOcU+X+HqA8alHb6 a8R2rtaKfmmF0bvh2qNU+9QmfPmBTNTXYacLx5ixt0wQX12a0RxmyQzl2D3ZF+Vej6F6 Xucg== MIME-Version: 1.0 X-Received: by 10.52.37.109 with SMTP id x13mr7084847vdj.10.1361655527488; Sat, 23 Feb 2013 13:38:47 -0800 (PST) In-Reply-To: <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> References: <5127848B.1060004@gmail.com> <928d2cf7-728b-4f35-b8c9-4c9b958507e5@googlegroups.com> <8eadd52c-d533-4333-8c7f-7bf3a6d7b046@googlegroups.com> <9p1ii899tkalvfd1cl7sneoqa9t1cqh4oj@invalid.netcom.com> Date: Sun, 24 Feb 2013 08:38:47 +1100 Subject: Re: Python Newbie From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361655535 news.xs4all.nl 6861 [2001:888:2000:d::a6]:35305 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39712 On Sun, Feb 24, 2013 at 5:29 AM, Dennis Lee Bieber 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