[Python-3000] find -> index patch (original) (raw)
Guido van Rossum guido at python.org
Sun Aug 27 23🔞13 CEST 2006
- Previous message: [Python-3000] find -> index patch
- Next message: [Python-3000] sort vs order (was: What should the focus for 2.6 be?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-3000] find -> index patch
- Next message: [Python-3000] sort vs order (was: What should the focus for 2.6 be?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]