Re: rfind bug ?
- From: Jean-Michel Pichavant <jeanmichel@xxxxxxxxxxx>
- Date: Wed, 21 Apr 2010 12:13:38 +0200
Stef Mientki wrote:
On 21-04-2010 10:56, Chris Rebert wrote:a.rfind(' ', 12)
On Wed, Apr 21, 2010 at 1:51 AM, Stef Mientki <stef.mientki@xxxxxxxxx> wrote:if it's not a bug,
With the following code, I would expect a result of 5 !!No. Don't you think someone would have found such an obvious bug by now?
11a= 'word1 word2 word3'
a.rfind(' ',7)
Is this a bug ?
then the start index has no meaning ...
... and some would call that a bug.
cheers,
Stef
Out[12]: -1
looks like the start index has a meaning ...
JM
.
- Prev by Date: Re: Write web apps in Python?
- Next by Date: Re: rfind bug ?
- Previous by thread: Re: rfind bug ?
- Next by thread: Re: rfind bug ?
- Index(es):