[issue14240] lstrip problem

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected behavior: http://docs.python.org/library/stdtypes.html#str.lstrip """The chars argument is not a prefix; rather, all combinations of its values are stripped""" -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open ->

[issue14240] lstrip problem

2012-03-09 Thread Thomas Turner
New submission from Thomas Turner : Problem with lstrip >>> s = 'msgid "supplier code"' >>> >>> s.lstrip('msgid "') 'upplier code"' >>> It should come back with supplier code" To get round the bug I did >>> s.lstrip('msgid ').lstrip('"') 'supplier code"' >>> -- components: None mess