[New-bugs-announce] [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>

More information about the New-bugs-announce mailing list