Jura <[EMAIL PROTECTED]> added the comment:
print '_element_no_of_hsscch'.lstrip.__doc__
S.lstrip([chars]) -> string or unicode
Return a copy of the string S with leading whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be conver
Georg Brandl <[EMAIL PROTECTED]> added the comment:
What did you expect? Quoting from the docs,
"""The chars argument is not a prefix; rather, all combinations of its
values are stripped:
>>> 'www.example.com'.lstrip('cmowz.')
'example.com'
"""
--
nosy: +georg.brandl
resolution: -> in
New submission from Jura <[EMAIL PROTECTED]>:
example from command line:
'_element_no_of_hsscch'.lstrip('_element_')
'o_of_hsscch'
'_element_o_of_hsscch'.lstrip('_element_')
'o_of_hsscch'
--
components: Interpreter Core
messages: 67748
nosy: jsostok
severity: normal
status: open
title: