Iterators vs. Generators
Kragen Sitaker
kragen at pobox.com
Mon Jun 10 20:44:56 EDT 2002
aahz at pythoncraft.com (Aahz) writes:
> So when would one actually write an iterator instead of a generator?
> I've been trying to think of an example and failing.
Dunno. Here are some ideas:
- when it needs to run in Python 1.5.2 (really! MetaPy.Iter lets you
write iterators that work with 1.5.2 and work fast with 2.2)
- when it is written in C or OCaml instead of Python
More information about the Python-list
mailing list