Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '21,': 0.07; 'here?': 0.09; 'subject:string': 0.09; 'cc:addr:python-list': 0.11; '(there': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:format': 0.16; 'subject:when': 0.16; 'wrote:': 0.18; '(not': 0.18; 'things.': 0.19; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "can't": 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'morning': 0.39; 'believe': 0.68; 'subject:have': 0.80; 'otten': 0.84; '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=8joVdRe+k5QuNmlQQEuHDIQkaPG6JF4cL6IkT7Invio=; b=Sw/+Yn/GwfE1Uojm6IpNq+3vGC+6PGREEEKQyjWYZtKaUxIjipU9pAhWs3+THtf/I0 ho0yPhZR6zQ2Y1MJIg/A5SSKQB+lLdkPLqXM7QI0DA3lEaC3qV0aA2pAiYoGtikHtpxd nwJL10iYF7NqJX8r93N4rexODQwFOGobpVq7AzHFwNZyvbvkoPBwt8wYjyk4mTfXohZh Xy9YDN0+ZKfFK0dqAvxsDw6wKZnIGX2o4nPB76U2AhWu0k8gvRN5v+LZ0pKYzzDhZd/b z0DDLCGOVdVL+Mm0Rc7pnxiiWAaLYRMTqbpux25i4jPutzXR39S+UmVHDCyh++xhrn+a w36w== MIME-Version: 1.0 X-Received: by 10.58.1.5 with SMTP id 5mr33564118vei.8.1398070571487; Mon, 21 Apr 2014 01:56:11 -0700 (PDT) In-Reply-To: References: <2075921a-dd3e-4788-86fb-e751ad98ee0e@googlegroups.com> Date: Mon, 21 Apr 2014 18:56:11 +1000 Subject: Re: how to string format when string have { 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1398070573 news.xs4all.nl 2924 [2001:888:2000:d::a6]:56327 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70455 On Mon, Apr 21, 2014 at 6:51 PM, Peter Otten <__peter__@web.de> wrote: > Some regex gymnastics in the morning (not recommended): You ask me to believe that a regex would be the best solution here? There's no use trying; one CAN'T believe impossible things. ChrisA (There goes the shawl again!)