Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.040 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.01; 'say,': 0.05; 'subject:code': 0.07; 'cc:addr:python-list': 0.11; "wouldn't": 0.14; 'subject:python': 0.16; 'all.': 0.16; 'cc:addr:python.org': 0.22; 'this?': 0.23; 'cc:2**0': 0.24; 'solutions.': 0.26; 'header :In-Reply-To:1': 0.27; 'rest': 0.29; 'mode': 0.30; 'assert': 0.31; 'run': 0.32; "can't": 0.35; 'one,': 0.35; 'charset:us-ascii': 0.36; 'received:10': 0.37; 'to:addr:gmail.com': 0.65; 'obvious': 0.74; 'imagine': 0.93; 'refuse': 0.93 From: Nick Cash To: Chris Angelico Subject: RE: cascading python executions only if return code is 0 Thread-Topic: cascading python executions only if return code is 0 Thread-Index: AQHO/32u6tV98OecD0SGiGjN2YIuk5phOMKcgACr1JiAAEBDqIAAAhYAgAAChxA= Date: Mon, 23 Dec 2013 19:31:24 +0000 References: <52b782db$0$6599$c3e8da3$5496439d@news.astraweb.com> <52b7a0e4$0$29994$c3e8da3$5496439d@news.astraweb.com> <52b86d53$0$29991$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [70.166.238.194] x-forefront-prvs: 0069246B74 x-forefront-antispam-report: SFV:NSPM; SFS:(10009001)(51704005)(199002)(189002)(74876001)(33646001)(50986001)(47976001)(49866001)(47736001)(76796001)(76576001)(76786001)(74316001)(2656002)(87936001)(74662001)(87266001)(74502001)(47446002)(31966008)(81542001)(83072002)(69226001)(85852003)(81342001)(90146001)(56816005)(74706001)(85306002)(46102001)(79102001)(81816001)(51856001)(54356001)(66066001)(74366001)(80022001)(65816001)(76482001)(80976001)(77982001)(59766001)(81686001)(4396001)(63696002)(1411001)(54316002)(56776001)(83322001)(53806001)(24736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR06MB541; H:DM2PR06MB542.namprd06.prod.outlook.com; CLIP:70.166.238.194; FPR:; RD:InfoNoRecords; A:1; MX:1; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: npcinternational.com Cc: "python-list@python.org" 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387827102 news.xs4all.nl 2930 [2001:888:2000:d::a6]:33787 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62653 > assert assertions_working() # refuse to run in -O mode >=20 > Can't imagine why that wouldn't work...... Why overthink this?=20 assert not sys.flags.optimize is clearly the one, and only one, obvious way to do it.=20 Of course, it works about as well as the rest of these solutions. Which is = to say, not at all. -Nick Cash