Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: pylint woes Date: Mon, 9 May 2016 12:18:19 +1000 Lines: 18 Message-ID: References: <1462673665.770286.601202553.071593AE@webmail.messagingengine.com> <1462720536.896455.601493505.776FAC7D@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 3yfhKeHfHD8LU73o02ATYQ/VDz3HRfdvsmO3GECNlVow== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'happens.': 0.09; '(at': 0.13; 'commit': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gregory': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'stephen': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'transaction': 0.30; 'operations': 0.31; 'probably': 0.31; "can't": 0.32; 'point': 0.33; 'usually': 0.33; 'case,': 0.34; 'requirements': 0.35; 'received:google.com': 0.35; 'ones': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'depends': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'done.': 0.37; 'received:209': 0.38; 'further': 0.62; 'necessarily': 0.63; 'chrisa': 0.84; 'received:209.85.215.42': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=RXpRVCYkN/u1H/o6wjmJkEMEZQHV4ihPPtUGebNIKNo=; b=dQWrH2OysAAZg4kMWX8HZX2nLJCGXFmarQm5WhXk0Ru52OTDxWLaemR9ZWdKBEHEyP YNuxM7I9TbcGJc10c/B/SFf07DyXdmTxL9B6igxEK8Tu50zxF+jlnkmIMkypwE6KOWap N2jgXKxfPUNT/K4/TXBpjBln6f858SrJLx2AMCHdKPlsFEk1p/kj//LnkGzCOjL9UYAw u0HmFHKF5I/4sR6v/DyjDzvT5f0DYy8Yk6fbenLJ0xIOd7hcWrXzdEvwt0y7UdgOXuWy EeubsOak+Mqz1RZeev4kixIbYYW4IB7uhzOYRSjQaajiiNrWuDpv7gmYtP3UDiMkIY3/ 2gBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=RXpRVCYkN/u1H/o6wjmJkEMEZQHV4ihPPtUGebNIKNo=; b=NEF9ScEmDRM7Rn7a8tWeFqPQOUePKG98dEiPTksJ45IS+s2SzDg26TJCi0CsXDS75a G2GiYfOlOOCvsTIN7zsy5S0IQ4K6cA66Vsi6o9MHcgHCpNC7seJjnlbtxwwuxmRxnb9x Q07jztcQAw12YEWx39cC/kcY45A93hlflmr9JLbW+mE8tOcIoPntNu3P7TW3SKrAImDR yM4ZcwrEiLBrZ+0105zQQl9KP4yE7Ww5GSeci3EGqYVieav0+WPhaI5AJ7xbT1byinCB WSaeBUoflOC6dVXm6Ib+gmZYztZ5FG7NNuo06hw1GU+Jv9LVxa3pFduJpQZ7BajYcfwN oUCA== X-Gm-Message-State: AOPr4FVBfsEbiDO5Q6wxyncDVNjCJx4BtlP4PPoAejpXMGKyww6u27lZfNf/JwLuTQ9jtGgn/Mw3YwVA/ZcWxw== X-Received: by 10.112.189.1 with SMTP id ge1mr13720234lbc.9.1462760300078; Sun, 08 May 2016 19:18:20 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <1462673665.770286.601202553.071593AE@webmail.messagingengine.com> <1462720536.896455.601493505.776FAC7D@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:108404 On Mon, May 9, 2016 at 11:17 AM, Gregory Ewing wrote: > Stephen Hansen wrote: >> >> The point is, you don't usually commit after an error happens. You >> rollback. > > > He might want to commit the ones that *did* go in. > That's not necessarily wrong. It all depends on the > surrounding requirements and workflow. If that's the case, they should probably be being committed part way. Generally, once the transaction state is in error, further operations can't be done. (At least, that's how it is with *good* database backends. I don't know what MySQL does.) ChrisA