Wummel added the comment:
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
>>>
----------
nosy: +calvin
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1259>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com