[issue3047] string object's lstrip function

2008-06-06 Thread Jura

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: string object's lstrip function
type: behavior
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3047>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3047] string object's lstrip function

2008-06-06 Thread Jura

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 converted to unicode before stripping

Ok, I didn't understand it correctly, because i red only __doc__ from
which is not the functionality clear. I found a workaround for it...

Let's leave it closed.

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3047>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4857] syntax: no unpacking in augassign

2009-01-06 Thread jura

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
аssignment statements, cannot be an unpacking)..."),
the syntax specification doesn't reflect this:
http://docs.python.org/3.0/reference/simple_stmts.html#grammar-token-augmented_assignment_stmt
http://docs.python.org/3.0/reference/grammar.html

--
assignee: georg.brandl
components: Documentation
messages: 79256
nosy: georg.brandl, jura05
severity: normal
status: open
title: syntax: no unpacking in augassign
versions: Python 3.0

___
Python tracker 
<http://bugs.python.org/issue4857>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4857] syntax: no unpacking in augassign

2009-01-06 Thread jura

jura  added the comment:

Yes, but
target ::= identifier | "(" target_list ")" | ...
so (x,y) seems to be a valid target.

___
Python tracker 
<http://bugs.python.org/issue4857>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com