[pypy-svn] r73624 - pypy/branch/cpython-extension/pypy/module/cpyext

jandem at codespeak.net jandem at codespeak.net
Sat Apr 10 16:16:58 CEST 2010


Author: jandem
Date: Sat Apr 10 16:16:56 2010
New Revision: 73624

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
Fix NotImplemented type the right way


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py	Sat Apr 10 16:16:56 2010
@@ -239,6 +239,7 @@
     '_Py_NoneStruct#': ('PyObject*', 'space.w_None'),
     '_Py_TrueStruct#': ('PyObject*', 'space.w_True'),
     '_Py_ZeroStruct#': ('PyObject*', 'space.w_False'),
+    '_Py_NotImplementedStruct#': ('PyObject*', 'space.w_False'),
     }
 INIT_FUNCTIONS = []
 
@@ -253,7 +254,7 @@
         "Unicode": "space.w_unicode",
         'Bool': 'space.w_bool',
         'None': 'space.type(space.w_None)',
-        'NotImplemented': 'space.w_NotImplemented',
+        'NotImplemented': 'space.type(space.w_NotImplemented)',
         }.items():
     GLOBALS['Py%s_Type#' % (cpyname, )] = ('PyTypeObject*', pypyexpr)
 



More information about the Pypy-commit mailing list