bizarre behavior using .lstrip
Pete Jereb
petejereb at yahoo.com
Sat Sep 20 10:24:01 EDT 2003
Thanks to all for the clarification. I was under the impression that
lstrip would remove a string I specified, not any character in the
string until a character is no longer found. I like the
s.lstrip('chg').lstrip
solution.
This is my first Python program, and between the messages on this
group and "Python in a Nutshell" I've been able to solve all the
problems I've encountered thus far. Hopefully I'll be able to
contribute to this group in a little bit! Pete.
More information about the Python-list
mailing list