Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.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.123 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.83; '*S*': 0.07; 'charset:iso-8859-7': 0.04; 'detect': 0.07; 'posted': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'notably': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'char': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'form.': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'most': 0.60; 'first': 0.61; 'name': 0.63; "it'd": 0.84; 'subject:gets': 0.84; 'acknowledge': 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:content-transfer-encoding; bh=OrcjPHypWVFYGWqIIqiUpL5x2cPSqrIqrV0m2SuJ+MY=; b=fCSq1u6EgF+wWGtkEcHhUY1BBEGHxZ4dOc5RSNhfcB7Ey73pnEAAey38GTW864LjCs 0eucBvKhCQxQy9dZhlAbElMBu8JorWs3fs1YM+PCZL7+Csud9L7r6ib7LagbyxqyyDli CHIxik3ZsIeFRisvR6TcB0eXlTkWiQ5tpo7E+hGPvvq/8f5Y37JnXgF8izvX5jHHPt6D Vvmr1sTuZC3Q/KqO67yecPYDNCwzT32yUNehy3W0yhH6ELujpr+w4OxiE/jY2cZ/L3LB IblrYgRpSzH/olU/89kFoYXjGQ4FYRMh/EE1cgSUBVngcI7mJ1HcN//8pKlWCCqovacv fyoQ== MIME-Version: 1.0 X-Received: by 10.52.164.163 with SMTP id yr3mr7873753vdb.76.1371023749155; Wed, 12 Jun 2013 00:55:49 -0700 (PDT) In-Reply-To: References: <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> Date: Wed, 12 Jun 2013 17:55:48 +1000 Subject: Re: A certainl part of an if() structure never gets executed. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371023756 news.xs4all.nl 15899 [2001:888:2000:d::a6]:49972 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47750 On Wed, Jun 12, 2013 at 5:45 PM, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1= =F2 wrote: > First of all i have changed the code to the following because using a > regex > to detect a single char was an overkill. > > if '=3D' not in name and '=3D' not in month and '=3D' not in year: It'd be courteous to acknowledge those who made that suggestion, most notably alex23 who posted it in almost that exact form. ChrisA