Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subsequent': 0.05; 'subject:Python': 0.06; '*args,': 0.09; 'whichever': 0.09; 'developers,': 0.11; 'def': 0.12; '**kwargs)': 0.16; '**kwargs):': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'print': 0.22; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'leave': 0.29; 'message-id:@mail.gmail.com': 0.30; 'fri,': 0.33; 'received:google.com': 0.35; 'skip:o 20': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'you.': 0.62; 'ps.': 0.84; '2013': 0.98 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:to :content-type; bh=naE3ng9yQXNW/YBYVtHTSGORhVJ7oiHZ7O3ArRAGRoY=; b=r6pMzJ9lLW2Nrwczbw4k6MGhpYldU969mBT+BRiIMeq3wpH8TUFNAqB665lCECUM9W x5OgETaPurMjyRuJEbWiImXnTMtMztrdmMZanWKf7exl5CSXBpp8Lmrcg4TcTuCVlm3D LvbjnJjS29rqD0Y0hryu3O057E/MxD2xfaGlFwtj9JfMff6YIdAQ8UkK9fEyn79Lo21d tj0/yz2H5nZ8CbIo6+lqJZzy7lY3RB18YOSqmBEo+GjNaTWC4Kf2thxa5M3R7InY2/xH TFKPGdiyDOZzCGd1Oo8U+j3OSelzZRQZOyqzui0V2bo6H+cbusqB2O1Q8wUUA5amY/b8 R18g== MIME-Version: 1.0 X-Received: by 10.52.0.81 with SMTP id 17mr267894vdc.50.1383270889849; Thu, 31 Oct 2013 18:54:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 1 Nov 2013 12:54:49 +1100 Subject: Re: Python wart 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383270899 news.xs4all.nl 15891 [2001:888:2000:d::a6]:34060 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58223 On Fri, Nov 1, 2013 at 12:53 PM, Chris Angelico wrote: > orig_print = print > def print(fmt, *args, **kwargs): > orig_print(fmt%args, **kwargs) PS. To be courteous to subsequent developers, you might want to instead leave print as it is, and create your own printf: def printf(fmt, *args, **kwargs): print(fmt%args, **kwargs) Take your pick, whichever way works for you. ChrisA