Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'alignment': 0.07; 'completeness': 0.07; 'parser': 0.07; 'missed': 0.09; 'python': 0.09; 'disregard': 0.09; 'received:155': 0.09; 'tab': 0.09; '(python)': 0.16; 'dependent.': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'editor,': 0.16; 'expands': 0.16; 'f.read()': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:159.53': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'securities,': 0.16; 'subject:fails': 0.16; 'subject:when': 0.16; 'tabs': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; 'expanded': 0.17; '>>>': 0.18; 'to:name:python-list@python.org': 0.20; '3.x': 0.22; 'received:169.254': 0.24; 'accuracy': 0.27; 'subject:/': 0.28; 'character.': 0.29; 'editors': 0.29; 'convert': 0.29; 'received:169': 0.29; 'header:Received:8': 0.30; 'code': 0.31; 'print': 0.32; 'to:addr:python-list': 0.33; 'skip:d 20': 0.34; 'there': 0.35; 'next': 0.35; 'charset:us-ascii': 0.36; 'editor': 0.37; 'does': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; 'helps': 0.63; 'information,': 0.63; 'url:email': 0.63; 'show': 0.63; 'legal': 0.65; 'subject': 0.66; 'talking': 0.66; 'purchase': 0.67; 'believe': 0.69; 'sale': 0.76; 'received:169.254.8': 0.84; 'subject:else': 0.84; 'visually': 0.84; 'dennis': 0.91 X-DKIM: OpenDKIM Filter v2.1.3 sf3.jpmchase.com qATMv6Vr005653 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1354229826; bh=in/ywH2449DixWmiaSaPooLOH9aTCieiZ1qGnTPIfnM=; h=From:To:Subject:Date:Message-ID:References: Content-Transfer-Encoding:MIME-Version:Content-Type; b=S37zRmCxMvCA/R8j1DW5t6MDFXgNN6Mujv3i57AE50ephTyrnySxQbWwNKkgKfHOD TiRocu9fGxvqFYSUALd7giq3NLjTvOPtgwAbfYseawKR1R8hyUnU5l+O1bA+6d1+X1 pm+8Z7axJ241D/0yVVRzRLDgufStfriacP9IFHVE= From: "Prasad, Ramit" To: "python-list@python.org" Subject: RE: re.search when used within an if/else fails Thread-Topic: re.search when used within an if/else fails Thread-Index: AQHNzcdZcFFfaT9Fc0qKvMMNsVHKnJgBaOGwgAAEkBA= Date: Thu, 29 Nov 2012 22:57:00 +0000 References: <2930dc36-9d8f-411d-aa7a-272fe4885ec5@i5g2000yqh.googlegroups.com> <11835b30-3448-45cc-9ae5-46d651f93429@googlegroups.com> <50b68476$0$29994$c3e8da3$5496439d@news.astraweb.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354229829 news.xs4all.nl 6873 [2001:888:2000:d::a6]:54343 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34079 Ramit Prasad wrote:=0D=0A> =0D=0A> Dennis Lee Bieber wrote:=0D=0A> >=0D=0A>= > Unless there has been a major change in the parser=2E=2E=2E (I still do= n't=0D=0A> > have Python 3=2Ex installed)=0D=0A> >=0D=0A> > I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF=0D=0A> > 8=2E=2E=2E=0D= =0A> =0D=0A> A tab is *one* character=2E Your *editor* may show tabs visual= ly=0D=0A> "expanded" or convert them to spaces=2E This is entirely editor d= ependent=2E=0D=0A> My current (python) editor, does expands tabs to the nex= t *multiple* of 4=2E=0D=0A> It helps keep code aligned, and I have no need = for 4 hard spaced tabs=0D=0A> without regards to alignment (yet)=2E I have = had editors that did 4 hard=0D=0A> spaced tabs, so it might be a developer/= application preference=2E=0D=0A> =0D=0A> >>> with open(r'c:\ramit\mix_tab_s= pace=2Etxt')as f:=0D=0A> =2E=2E=2E d =3D f=2Eread()=0D=0A> =2E=2E=2E=0D= =0A> >>> print repr(d)=0D=0A> '\tblah\n test\n\t'=0D=0A> >>> print d[0] = + 'goo'=0D=0A> goo=0D=0A> >>> print repr(d[0] + 'goo')=0D=0A> '\tgoo'=0D= =0A=0D=0AApologies, I missed that it was talking about the parser=0D=0Aand = not editor/file=2E Please disregard my previous post=2E =0D=0A=0D=0A=0D=0A~= Ramit=0D=0A=0D=0A=0D=0AThis email is confidential and subject to important = disclaimers and=0D=0Aconditions including on offers for the purchase or sal= e of=0D=0Asecurities, accuracy and completeness of information, viruses,=0D= =0Aconfidentiality, legal privilege, and legal entity disclaimers,=0D=0Aava= ilable at http://www=2Ejpmorgan=2Ecom/pages/disclosures/email=2E