[Python-Dev] iterators (original) (raw)
Thomas Wouters thomas@xs4all.net
Mon, 21 Aug 2000 12:59:44 +0200
- Previous message: [Python-Dev] iterators
- Next message: [Python-Dev] iterators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Aug 21, 2000 at 12:43:47PM +0200, Fredrik Lundh wrote:
mal wrote: > How about a third variant: > > #3: _> iter = .iterator() _> while iter: _> = iter.next() >
how does that one terminate?
__iter should evaluate to false once it's "empty".
-- Thomas Wouters <thomas@xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
- Previous message: [Python-Dev] iterators
- Next message: [Python-Dev] iterators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]