different ways to strip strings

Kent Johnson kent at kentsjohnson.com
Mon Feb 27 14:45:44 EST 2006


Crutcher wrote:
> It is something of a navel (left over feature). "xyz".strip() is (I
> think) newer than string.strip()
> 
Yes, but the question as written was about str.strip() which is an 
unbound method of the str class, not string.strip() which is a 
deprecated function in the string module.

Kent



More information about the Python-list mailing list