Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Ignore error with non-zero exit status Date: Mon, 21 Dec 2015 10:09:20 +1100 Lines: 27 Message-ID: References: <3883651.fOIMIIEhYO@PointedEars.de> <2062582.Z8LLNUJk5W@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de tpNc6eBdNWckjDdX39IxyAarTsseYIOqWHL22ySZQamg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; '21,': 0.07; 'formatting': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'subject:error': 0.11; '"new-style': 0.16; 'formatting,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:non': 0.16; 'wrote:': 0.16; 'string': 0.17; 'language': 0.19; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'preferred': 0.20; '3.x': 0.22; 'am,': 0.23; 'code.': 0.23; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; 'mon,': 0.24; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; "skip:' 10": 0.28; 'away.': 0.29; 'url:python': 0.33; 'received:google.com': 0.35; 'text': 0.35; 'exist': 0.35; "isn't": 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'received:209': 0.38; 'subject:-': 0.39; 'subject:with': 0.40; 'url:3': 0.60; 'thomas': 0.63; 'here:': 0.63; 'percent': 0.66; 'stated': 0.70; 'abandon': 0.84; 'chrisa': 0.84; 'confusion.': 0.84; 'subject:status': 0.84; 'weaker': 0.84; 'to:none': 0.91; 'favour': 0.93 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:content-transfer-encoding; bh=9cVruhzlsu5R9AVi8IVEtgcJyCM4jnjWarrscbZmrQ4=; b=zWj0BMklrnK+4NJ0OQA+1PDTsGmbME39W+po9jCDulU5X/5U685yF0FG2YViHDWpQU FCezC2cozKTxT3pIhuORIr+ZossvJlFnYAwVyAC3MK0U93lMllAd0lW9bQevF88PRKPm 5Y1gg7D+OyzKLIZkT6aZOLlys725HN7NLOziqjfsf+bO2dqBH2ODq42WLNHZ4CKFZ37f pMUpmv6ySqErwZMGdieXtb7ERYsepYLTV+6sbNKwPOUxTCf1tk/cDIwhmmlmm0ti+5UW abhXZHW/DJA3xjODk8uhHEWzoxdB72Wwtig3TNcN3RcfZ22Jjcguv74jLUSQ2Mdn63Yn nqMA== X-Received: by 10.107.163.146 with SMTP id m140mr15069669ioe.19.1450652961015; Sun, 20 Dec 2015 15:09:21 -0800 (PST) In-Reply-To: <2062582.Z8LLNUJk5W@PointedEars.de> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100640 On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn wrote: >> Percent formatting isn't going away. There's no need to tell people to >> abandon it in favour of .format(), unless they actually need a feature >> of .format(). > > ,- > | > | [=E2=80=A6] > | This method of string formatting is the new standard in Python 3, and > | should be preferred to the % formatting described in | Operations> in new code. That text doesn't exist in the 3.x documentation: https://docs.python.org/3/library/stdtypes.html#str.format There's a somewhat weaker recommendation here: https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatt= ing But it's been clearly stated that .format is not going to do away with percent formatting, and all language of "new-style formatting" has been removed so as not to cause confusion. ChrisA