Closed perimosocordiae closed 9 years ago
Muhammad will work on this as his final GSoC assignment, since he's completed everything else we've thrown at him. :)
Muhammad has tackled all of these things! (Of course, if you find a bug, create a test & file an issue.)
As of e30f53e96b61064584f4fc53c0d7c6e06e6ef2f0, the two failing tests which exercised generator objects are now skipped, which means that Travis is now reporting a passing build (yay). I'm creating this issue to remind us that generators are still broken.
Rough roadmap:
next(): IPy_Object
method of theIterator
interface to$__next__
, which should be aPy_AsyncNativeFuncObject
. We probably want to keep around the convenient, non-async versions around as well, like we do with other combination native/python methods.$__next__
from the FOR_ITER opcode.src/optable.ts
. (Will probably look similar to the RETURN_VALUE opcode.)$__next__
and suspended at each YIELD_VALUE.StopIteration
exception, which signals that a generator has been exhausted.