[issue14240] lstrip problem

Thomas Turner report at bugs.python.org
Fri Mar 9 12:51:35 CET 2012


New submission from Thomas Turner <tturner at joinerysoft.com>:

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
messages: 155225
nosy: Thomas.Turner
priority: normal
severity: normal
status: open
title: lstrip problem
type: behavior
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14240>
_______________________________________


More information about the Python-bugs-list mailing list