On 8/23/06, Terry Reedy <[EMAIL PROTECTED]> wrote:
> 2. change find()'s error return to None, and remove index();
+1
It is particularly unfortunate that the error code of -1 is a valid index.
>>> substring = string[string.find(marker):]
will silently produce garbage.
> or possibly consider Josiah's idea of
> 3. remove both in favor of an index generator.
The strawman seemed clumsy, but maybe it will grow on me.
-jJ
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com