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
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
New submission from jura :
the following code produces syntax error:
>>> (x, y) += 1
While this is documented in
http://docs.python.org/3.0/reference/simple_stmts.html#augmented-assignment-statements
("An augmented assignment evaluates the target (which, unlike normal
аssignm
jura added the comment:
Yes, but
target ::= identifier | "(" target_list ")" | ...
so (x,y) seems to be a valid target.
___
Python tracker
<http://bu