Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.shlink.de!news.iphh.net!iphh.net!news.osn.de!diablo2.news.osn.de!195.114.241.41.MISMATCH!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'bug.': 0.07; 'hettinger': 0.07; 'python': 0.08; 'fix.': 0.09; 'subject:parsing': 0.09; 'am,': 0.13; 'wrote:': 0.15; 'curly': 0.16; 'participate.': 0.16; 'quote.': 0.16; 'url:pastebin': 0.16; 'cc:addr:python-list': 0.16; 'raymond': 0.19; 'seems': 0.20; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'sunday,': 0.23; 'tue,': 0.23; 'appear': 0.23; 'code': 0.24; 'stack': 0.25; 'thanks.': 0.26; 'lee': 0.28; 'message- id:@mail.gmail.com': 0.28; 'forgot': 0.29; 'cc:addr:python.org': 0.30; 'seem': 0.31; 'it?': 0.34; 'there': 0.34; 'post': 0.34; '17,': 0.35; 'function.': 0.35; 'installed': 0.35; 'file': 0.36; 'received:google.com': 0.38; 'received:209.85.161': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; "there's": 0.39; 'received:209': 0.40; 'hope': 0.60; 'double': 0.62; 'url:p': 0.63; 'july': 0.64; 'here.': 0.66; 'subjectcharset:utf-8': 0.72; 'spot': 0.78; 'url:xahlee': 0.84; 'xah': 0.84; 'subject:little': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=MUrhu3zFp/0fBWN2OGO7mSlij4y8YQPUZ0nzaO/5nu8=; b=PwEHyr6Uy7R3+THsXjjrf0K7eTX+VjHcuKMgBGJwEYlTbOhugtxIggWYrGyXSFNb4g 8dLkuPEJrudSyQjbERxxZRtCijLppYNceEJP1Ttyeo0fWU1ieXPF9XYsEguZRG/HnCqi IbAtAcVVplTmNOxWZCLShJjdW3mUavfQqOC9A= MIME-Version: 1.0 In-Reply-To: <2a67a8cd-d3f0-4af9-9105-6551344b0277@t8g2000prm.googlegroups.com> References: <36037253-086b-4467-a1db-9492d3772e78@r5g2000prf.googlegroups.com> <99245842-e205-4a34-8f9d-c64d41e044b6@j9g2000prj.googlegroups.com> <2a67a8cd-d3f0-4af9-9105-6551344b0277@t8g2000prm.googlegroups.com> From: Ian Kelly Date: Tue, 19 Jul 2011 12:08:06 -0600 Subject: =?UTF-8?Q?Re=3A_a_little_parsing_challenge_=E2=98=BA?= To: Xah Lee Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311098919 news.xs4all.nl 23891 [2001:888:2000:d::a6]:46448 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9905 On Tue, Jul 19, 2011 at 10:54 AM, Xah Lee wrote: > On Sunday, July 17, 2011 2:48:42 AM UTC-7, Raymond Hettinger wrote: >> On Jul 17, 12:47=A0am, Xah Lee wrote: >> > i hope you'll participate. Just post solution here. Thanks. >> >> http://pastebin.com/7hU20NNL > > just installed py3. > there seems to be a bug. > in this file > > http://xahlee.org/p/time_machine/tm-ch04.html > > there's a mismatched double curly quote. at position 28319. > > the python code above doesn't seem to spot it? It would appear that Raymond forgot to check that the stack is empty at the end of the check_balance function. It's an easy enough thing to fix.