[issue1259] string find and rfind methods give a TypeError that is misleading
Barry A. Warsaw
report at bugs.python.org
Thu Oct 11 03:24:59 CEST 2007
Barry A. Warsaw added the comment:
I believe this is because string_find_internal() uses an O& with
_PyEval_SliceIndex() to convert its start and end arguments, but the
latter function does not accept None. To fix this, you'd have to change
string_find_internal() to do its own argument checking for None before
calling _PyEval_SliceIndex.
----------
nosy: +barry
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1259>
__________________________________
More information about the Python-bugs-list
mailing list