Hello,

Is there such a function included in the standard Python distribution?
This is what I came up with. How to improve it? Thanks.

def lstrip2(s, chars, ingoreCase = True):
    if ingoreCase:
        s2 = s.upper().lstrip(chars.upper())
        return s[len(s)-len(s2):]
    else:
        return s.lstrip(chars)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to