Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.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.025 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.01; 'try:': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'def': 0.12; 'formatting.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'please?': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'indentation': 0.31; 'received:google.com': 0.35; 'pm,': 0.38; 'email,': 0.69; 'absolutely': 0.87; 'crucial': 0.91; '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=7PA4h7QiI9Z/8/SB/F/pQaKKgg6BHmP5eM35BH8AWKc=; b=Cu2aMiNhjSXX4KgFGRr5g3q3O3DB4l9Cfvya3M5nH75P1vhVmPxko/faa9QQyrwJHT OKj9aMg8owP9Eb/+Dw0eBKN4OFI58RKwT2ZpeZXeHu+yjbBTQz0nRQJGOxBacUilHF3l s+7NSS/wV4+ZWxZhugpmNaIe/HCNmrdRP1Vf5v/7Gc8sbHkZyHav8H3c3Md5NtMFpqw6 5jqbhKAyCblhyc1kGOmJXXe3uxyzZwEXNTKMnzDwSN9e4Y6uR+caG0CHNn0Vm7LCUkgd WulglnOWwRnJd1pNXQFKMJpxEpEcN4Md/vytOTcemxpJX3A9T3Lnu7wJWuSYqmKqtmVC QwCw== MIME-Version: 1.0 X-Received: by 10.50.60.97 with SMTP id g1mr35187952igr.2.1414555327233; Tue, 28 Oct 2014 21:02:07 -0700 (PDT) In-Reply-To: <9a7bada3-6a2c-49c1-9806-cbf690a350b8@googlegroups.com> References: <9a7bada3-6a2c-49c1-9806-cbf690a350b8@googlegroups.com> Date: Wed, 29 Oct 2014 15:02:07 +1100 Subject: Re: % symbol in python 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414555330 news.xs4all.nl 2857 [2001:888:2000:d::a6]:41114 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 4047524487 X-Received-Bytes: 3289 Xref: csiph.com comp.lang.python:79875 On Wed, Oct 29, 2014 at 2:51 PM, wrote: > def fetchRecord(db, form): > try: > key = form['key'].value When you paste Python code into an email, it's absolutely crucial that you maintain formatting. The indentation is significant. Can you paste it again, please? ChrisA