Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.119 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.02; 'cc:addr:python-list': 0.11; '(within': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; '15,': 0.26; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'supposed': 0.32; 'received:google.com': 0.35; 'loss': 0.38; 'nov': 0.38; 'failures': 0.60; 'most': 0.60; 'life': 0.66; 'importantly,': 0.68; 'smoke': 0.91; 'to:none': 0.92 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 :content-type; bh=iMKO1ToCZ0OARWmfQ1/VjkBknxdUG/63OZJo7tCg+40=; b=dNHkZbQhxTvLilg6eJUURA0z0p5ep4WnLO0raFNNWYJHbJ9Rt8etMRZ0XNvtEkBlyF s1+g6BmwhnlfeOSK/iMZLtbeU/mqmje7SwXPuLiq5cPM+gmOssE828afnIuq/8yk7bd/ kKSSJQiBUxuDbN3QNVp4fRNUK70vZkUTN8XAd1r6ygy8B1ai3iL6LWxFpqJPW1VPx0Ia Cq8Ps54YnYifFJ/CUbpGeLme0Xfln42dbhpemleiP4gr+uvMTx/fgsNcYbOwx29wyPwf OBL48xyqqTTenyeNsn84U8sG6Regbf5rZTv2Zt7+QdzTF98Ghr6JQjvwaw9GuqraFn1/ m6mw== MIME-Version: 1.0 X-Received: by 10.107.3.157 with SMTP id e29mr431530ioi.44.1416013490354; Fri, 14 Nov 2014 17:04:50 -0800 (PST) In-Reply-To: <87h9y1l3tt.fsf@elektro.pacujo.net> References: <96c138e4-ab95-4e5f-a0c8-e696b5a926bb@googlegroups.com> <87a93wqeq3.fsf@elektro.pacujo.net> <87y4rgozgd.fsf@elektro.pacujo.net> <0cdc67f4-d9d5-4a73-91fe-7558161246af@googlegroups.com> <28e159ff-3d64-4793-9082-05cf1553c7c2@googlegroups.com> <87h9y4owgc.fsf@elektro.pacujo.net> <54669308$0$13002$c3e8da3$5496439d@news.astraweb.com> <87h9y1l3tt.fsf@elektro.pacujo.net> Date: Sat, 15 Nov 2014 12:04:50 +1100 Subject: Re: I love assert From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416013493 news.xs4all.nl 2861 [2001:888:2000:d::a6]:54038 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80797 On Sat, Nov 15, 2014 at 11:12 AM, Marko Rauhamaa wrote: > Most importantly, assertion failures are not supposed to be recovered > from (within the program). Assertion failures can result in the loss of > life and limb. They can result in database corruption. They can result > in monetary losses. They can result in smoke coming out of the monitor. Or, in theory, AssertionError just prevented any of the above from happening. ChrisA