Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37565

Re: using split for a string : error

References <CAFqGZRGMXcku_nM_LqPsHpCzqGxF57LOSKwKwoCH+LyhPA8t_A@mail.gmail.com> <51011315.3060406@tobix.eu> <CAFqGZREPLGcpY_3W_-eTCFGD64natix+F6dujWAe1VQgzLKfRQ@mail.gmail.com>
Date 2013-01-24 22:17 +1100
Subject Re: using split for a string : error
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.964.1359026261.2939.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jan 24, 2013 at 10:01 PM, inshu chauhan <insideshoes@gmail.com> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: using split for a string : error Chris Angelico <rosuav@gmail.com> - 2013-01-24 22:17 +1100

csiph-web