[Python-3000] find -> index patch (original) (raw)

Guido van Rossum guido at python.org
Sun Aug 27 23🔞13 CEST 2006


On 8/27/06, Jack Diederich <jack at psynchronous.com> wrote:

What is with the sudden rush to solve all problems by using slice objects?> I've never used a slice object and I don't care to start now. The above code reads just fine as

i = s.find('\n', start, stop) if i >= 0: yield s[:i]

Hear, hear.

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list