"Bryan Olson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> The double-meaning of -1, as both an exclusive stopping bound
> and an alias for the highest valid index, is just plain whacked.

I agree in this sense: the use of any int as an error return is an 
unPythonic *nix-Cism, which I believe was copied therefrom.  Str.find is 
redundant with the Pythonic exception-raising str.index and I think it 
should be removed in Py3.

Therefore, I think changing it now is untimely and changing the language 
because of it backwards.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to