[pypy-svn] r4870 - pypy/branch/src-newobjectmodel/pypy/interpreter
hpk at codespeak.net
hpk at codespeak.net
Thu Jun 3 16:05:03 CEST 2004
Author: hpk
Date: Thu Jun 3 16:05:02 2004
New Revision: 4870
Modified:
pypy/branch/src-newobjectmodel/pypy/interpreter/generator.py
Log:
revived the interal generator __iter__ hack ...
(obsolete if armin suceeds soon)
Modified: pypy/branch/src-newobjectmodel/pypy/interpreter/generator.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/interpreter/generator.py (original)
+++ pypy/branch/src-newobjectmodel/pypy/interpreter/generator.py Thu Jun 3 16:05:02 2004
@@ -79,10 +79,10 @@
# XXX the following is for TrivialObjSpace only, when iteration is
# done by C code (e.g. when calling 'list(g())').
def __iter__(self):
- class hack:
+ class hack(object):
def next(h):
try:
- return self.pypy_next()
+ return self.descr_next()
except NoValue:
raise StopIteration
return hack()
More information about the Pypy-commit
mailing list