Re: [pypy-dev] Generators in RPython

2011-12-23 Thread Maciej Fijalkowski
On Fri, Dec 23, 2011 at 3:46 PM, Armin Rigo wrote: > Hi all, > > RPython now has support for generators.  The support is minimal for now: > > * only pre-Python-2.5 generators: no .send(), no "yield" inside a > "try:finally:" block, etc. > > * you cannot use a "for" loop to iterate over a generator

[pypy-dev] Generators in RPython

2011-12-23 Thread Armin Rigo
Hi all, RPython now has support for generators. The support is minimal for now: * only pre-Python-2.5 generators: no .send(), no "yield" inside a "try:finally:" block, etc. * you cannot use a "for" loop to iterate over a generator-iterator. You have to use explicitly .next() and catch the StopI