On 8/27/06, Jack Diederich <[EMAIL PROTECTED]> 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/)
_______________________________________________
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