Message82480
Examples of bad behaviour:
>>> 'abacde'.lstrip('ab')
'cde'
>>> 'abaaacde'.lstrip('ab')
'cde'
>>> 'aabacde'.lstrip('aab')
'cde'
>>> 'abcede'.rstrip( 'de' )
'abc'
>>> 'abacdeaab'.strip('ab')
'cde'
Probably a few more similar to these will fail as well.
I have tested this with a fairly recent 2.5 (maybe 2.53 maybe 2.54), and
with 2.6.1. I have commented this to a friend and he recalls problems
similar to these with lstrip and rstrip a few years ago, so it might
have been an early 2.4 version or a late 2.3.
Thanks. |
|
Date |
User |
Action |
Args |
2009-02-19 17:21:30 | alexlc | set | recipients:
+ alexlc |
2009-02-19 17:21:30 | alexlc | set | messageid: <1235064090.02.0.287381769922.issue5318@psf.upfronthosting.co.za> |
2009-02-19 17:21:28 | alexlc | link | issue5318 messages |
2009-02-19 17:21:27 | alexlc | create | |
|