This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author calvin
Recipients barry, calvin, facundobatista, rbcollins
Date 2007-10-16.12:45:02
SpamBayes Score 0.30893096
Marked as misclassified No
Message-id <1192538703.2.0.314199224104.issue1259@psf.upfronthosting.co.za>
In-reply-to
Content
I also hit this bug. The .index() methods have the same issue,
as well as the methods in the string and strop modules:

>>> "123".index("2", None)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: slice indices must be integers or None
>> import strop, string
>>> strop.rfind("123", "2", None)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: an integer is required
>>> string.rfind("123", "2", None)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/string.py", line 374, in rfind
    return s.rfind(*args)
TypeError: slice indices must be integers or None
>>>
History
Date User Action Args
2007-10-16 12:45:03calvinsetspambayes_score: 0.308931 -> 0.30893096
recipients: + calvin, barry, facundobatista, rbcollins
2007-10-16 12:45:03calvinsetspambayes_score: 0.308931 -> 0.308931
messageid: <1192538703.2.0.314199224104.issue1259@psf.upfronthosting.co.za>
2007-10-16 12:45:03calvinlinkissue1259 messages
2007-10-16 12:45:02calvincreate