Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'trailing': 0.07; 'subject:string': 0.09; 'subject:using': 0.09; 'subject:error': 0.11; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'repr()': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'jan': 0.18; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'there.': 0.28; 'mind,': 0.29; 'worked': 0.30; 'subject: : ': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; '!!!': 0.62; 'great': 0.64; 'printing,': 0.75; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=SsaA+fM7B66Eq/b65+5uRVsOPD3ySTKk1OdFhmMdMx0=; b=Xh/QHXKUASe+Bw6HeZZlr5yEpIqEr/ofeNXMBrBJXtyheI4KF1Eih31LOorFuZt4ny u3Le+xLZLAHyQpK+TQGajMKIWPp3g5w6BkKkI6nH1dqyp5V9g8wIl5uvFt05qJlH5Hky 7hN/dkw9ESmgExKq8UrjdmP/dHUYWxT/tUYWMWhg605dht9LH3NX9q4Ffri46/c2j2Ag BGvH+SHDRfd7coEotNuUCiPIt8PbBI1Qrjr6Fwa/R7CDwxSW1WArRWEkDosu3CKzUOTk ocWf0skIGIFoTRd8Tjdqn6KFYsD8TO39fGUsGrxNlJlKnaxGQL3nmVaFhnkpcnwl/XcU 7JjQ== MIME-Version: 1.0 X-Received: by 10.52.29.109 with SMTP id j13mr1209110vdh.111.1359026258547; Thu, 24 Jan 2013 03:17:38 -0800 (PST) In-Reply-To: References: <51011315.3060406@tobix.eu> Date: Thu, 24 Jan 2013 22:17:38 +1100 Subject: Re: using split for a string : error From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359026261 news.xs4all.nl 6916 [2001:888:2000:d::a6]:50153 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37565 On Thu, Jan 24, 2013 at 10:01 PM, inshu chauhan wrote: > Yeah I tried printing, there were trailing white spaces, so i used strip() > and IT Worked !!! :) Awesome! Keep repr() in mind, it's a great way to check what's really there. ChrisA