Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!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.064 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.03; 'msg': 0.09; 'separating': 0.09; 'subject:question': 0.10; 'wrote': 0.14; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'possibly': 0.26; 'skip:_ 20': 0.27; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'johnson': 0.35; 'received:google.com': 0.35; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'expression': 0.60; 'costs': 0.63; 'more': 0.64; 'rick': 0.93; '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=F505uXp5JNiig2gCQCnKK/r3oH3eOZiNmtouvGf9/GI=; b=N3gaTU01utK9nrbWYU3eOUT6DDvLcvhou9yTd2o04xEfL+qGzNbP1KK9cGIeRduJle xBP6op0i6Cw4hr+iIr6xo7c9v8cIRV/ELLya7OIhnci8gO9SFS9dBKVq36OulpwB/olV WvE/S2e5WB5ZHEcBIaFSIyPl6g+pNB4YDQuGSDHtFSujBUX0RRUL2dV2qAyMDttzB4bf IFIDQ2CGqP3+Bz9suRsuIvpnM0UY14dTa1YS6kQLEsRD2cvyIolBo7DA0iOcer05wo9b +lpYn99axzl6FW7y0RXGplsSZKnvNNRM0bsqOe6T9+jz4+Zikt8aReJ1ONdngCTiTEta h0XQ== MIME-Version: 1.0 X-Received: by 10.58.214.105 with SMTP id nz9mr8563577vec.58.1371942770984; Sat, 22 Jun 2013 16:12:50 -0700 (PDT) In-Reply-To: <51870913-c348-4807-bc25-aa7c8fbf0001@googlegroups.com> References: <51C4D2FF.8000709@digipen.edu> <51870913-c348-4807-bc25-aa7c8fbf0001@googlegroups.com> Date: Sun, 23 Jun 2013 09:12:50 +1000 Subject: Re: n00b question on spacing 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371943267 news.xs4all.nl 15998 [2001:888:2000:d::a6]:57137 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48952 On Sun, Jun 23, 2013 at 1:24 AM, Rick Johnson wrote: > _fmtstr = "Item wrote to MongoDB database {0}, {1}" > msg = _fmtstr.format(_arg1, _arg2) As a general rule, I don't like separating format strings and their arguments. That's one of the more annoying costs of i18n. Keep them in a single expression if you possibly can. ChrisA