string.py

Fredrik Lundh effbot at telia.com
Wed Feb 16 12:40:31 EST 2000


Adrian Eyre <a.eyre at optichrome.com> wrote:
> I suspect, however, that JPython has this already implemented,
> so this is unlikely to change in CPython.

don't know about JPython, but it's definitely implemented
in the current CPython code base.

> Doesn't really bother me too much. It just feels like a kludge.

it isn't, when compared to the alternatives.

> And the similarity of index() and find() makes me feel that one
> should be redundant (probably the one which returns -1).

like getattr/hasattr, you mean?

</F>





More information about the Python-list mailing list