Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'interpreter': 0.07; 'python': 0.08; 'bash': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'trace.': 0.16; 'this:': 0.16; 'wrote:': 0.16; 'received:209.85.210.174': 0.18; 'received:mail- iy0-f174.google.com': 0.18; 'subject:help': 0.22; 'header:In- Reply-To:1': 0.22; 'sep': 0.23; 'pm,': 0.24; 'stack': 0.24; 'thu,': 0.28; 'script.': 0.29; 'looks': 0.29; 'message- id:@mail.gmail.com': 0.29; 'environment.': 0.30; 'error': 0.32; 'to:addr:python-list': 0.33; 'message.': 0.34; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39; 'your': 0.61; 'show': 0.67; 'applicable': 0.68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=uaI2E/BCcNxN8XXf2edpOriwHdzOTxO0F7TuG/4Mleg=; b=lpZTERuuQHBuXXIA5kDs0WGM+S4Sjc0VZvwg3vV7gU15yzVDu7+/MB5fCjWBuJmMp2 6zjLD99+l93Wl2U0LYYBEZ1peMWybpNGZxivp3o26hemeeE5U9wOzVoynT8N4UiySH+z hM7SdpqcVtHRgweNf0790axw83DcjjFud1D1w= MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 15 Sep 2011 15:01:52 +1000 Subject: Re: help regarding re.search From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1316062914 news.xs4all.nl 2404 [2001:888:2000:d::a6]:44198 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:13301 On Thu, Sep 15, 2011 at 2:55 PM, Kushal Kumaran wrote: > That looks like a bash error message. =A0Syntax errors in python show up > with a stack trace. =A0Run your program using the python interpreter > like this: > > python file.py > OR > python3 file.py > > whatever is applicable in your environment. > Or add a shebang to the top of your script. ChrisA