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


Groups > comp.lang.python > #22051

Re: Odd strip behavior

References <5B2CBFB0-DC2D-47E1-978F-59E47EB3A757@gmail.com> <CAJ6cK1a_D-OypQbJsBEfTJeY-JqmK3F4pdLBS2pKmg0UaH0E_g@mail.gmail.com> <775DE2D7-B96D-49F5-B6EA-B58BEE1B7F80@gmail.com>
Date 2012-03-22 20:18 +0000
Subject Re: Odd strip behavior
From Arnaud Delobelle <arnodel@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.910.1332447504.3037.python-list@python.org> (permalink)

Show all headers | View raw


On 22 March 2012 20:04, Rodrick Brown <rodrick.brown@gmail.com> wrote:
>
> On Mar 22, 2012, at 3:53 PM, Arnaud Delobelle <arnodel@gmail.com> wrote:
> Try help(ste.strip)
>
> It clearly states "if chars is given and not None, remove characters in
> chars instead.
>
> Does it mean remove only the first occurrence of char? That's the behavior
> I'm seeing.

The key words in the docstring are "leading and trailing"

-- 
Arnaud

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


Thread

Re: Odd strip behavior Arnaud Delobelle <arnodel@gmail.com> - 2012-03-22 20:18 +0000

csiph-web