[pypy-svn] r74430 - pypy/trunk/pypy/module/cpyext
agaynor at codespeak.net
agaynor at codespeak.net
Fri May 7 04:21:37 CEST 2010
Author: agaynor
Date: Fri May 7 04:21:35 2010
New Revision: 74430
Modified:
pypy/trunk/pypy/module/cpyext/api.py
Log:
Added Cell type to cpyext, untested.
Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py (original)
+++ pypy/trunk/pypy/module/cpyext/api.py Fri May 7 04:21:35 2010
@@ -17,6 +17,7 @@
from pypy.interpreter.error import OperationError, operationerrfmt
from pypy.interpreter.baseobjspace import W_Root
from pypy.interpreter.gateway import ObjSpace, unwrap_spec
+from pypy.interpreter.nestedscope import Cell
from pypy.rlib.entrypoint import entrypoint
from pypy.rlib.unroll import unrolling_iterable
from pypy.rlib.objectmodel import specialize
@@ -305,6 +306,7 @@
"BaseObject": "space.w_object",
'None': 'space.type(space.w_None)',
'NotImplemented': 'space.type(space.w_NotImplemented)',
+ 'Cell': 'space.gettypeobject(Cell.typedef)',
}.items():
GLOBALS['Py%s_Type#' % (cpyname, )] = ('PyTypeObject*', pypyexpr)
More information about the Pypy-commit
mailing list