different ways to strip strings

rtilley rtilley at vt.edu
Mon Feb 27 14:59:50 EST 2006


Kent Johnson wrote:
> So...
> s.strip() gets a bound method object from the class and calls it with no 
> additional argument.
> str.strip(s) gets an unbound method object from the class and calls it, 
> passing a class instance as the first argument.
> 
> Kent

Thank you Kent. That's a very informative explanation. It makes sense too :)



More information about the Python-list mailing list