[Python-au] strip function

Andrew Bennetts andrew-pythonau@puzzling.org
Tue, 28 Jan 2003 18:15:58 +1100


On Tue, Jan 28, 2003 at 05:27:31PM +1100, vector180 wrote:
> Having som eproblems with the strip function.
> Activestate Pythonwin.
> some doc seems to indicate you can set which characters you want striped 
> from the ends.
> strip([chars])
> i was hopeing strip("h") would strip leading,trailing  h s for eg.
> I have tried various configurations i hope I just have the syntax wrong.

If I recall correctly, this was introduced in Python 2.2... which version of
Python do you have?

-Andrew.