Jacob S. wrote:
I don't know who's going crazy here... but I checked that straight from the python 2.4 interpreter...
>>> a = "go on long buddy" >>> a.lstrip('gonl') ' on long buddy' >>> a.lstrip('gonl ') 'buddy' >>>
Note that in the second case, I've included a space in the lstrip() parameter. lstrip() is essentially saying "remove all leading characters until you find a character that's not in this sequence" -- a space counts as a character. (Took me trying it out before I saw this, so don't feel bad. ;) )
Jeff Shannon Technician/Programmer Credit International
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor