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

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Apr 7 00:41:43 CEST 2010


Author: xoraxax
Date: Wed Apr  7 00:41:42 2010
New Revision: 73474

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
Fix translation (hopefully).

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	Wed Apr  7 00:41:42 2010
@@ -26,6 +26,7 @@
 # CPython 2.4 compatibility
 from py.builtin import BaseException
 from pypy.tool.sourcetools import func_with_new_name
+from pypy.objspace.std.noneobject import W_NoneObject
 
 DEBUG_WRAPPER = False
 
@@ -245,7 +246,7 @@
         "List": "space.w_list",
         "Unicode": "space.w_unicode",
         'Bool': 'space.w_bool',
-        'None': 'space.w_None',
+        'None': 'space.gettypeobject(W_NoneObject.typedef)',
         }.items():
     GLOBALS['Py%s_Type#' % (cpyname, )] = ('PyTypeObject*', pypyexpr)
 
@@ -419,6 +420,7 @@
     object_pto.c_tp_bases = make_ref(space, space.newtuple([]))
     inherit_slots(space, type_pto, space.w_object)
 
+
 #_____________________________________________________
 # Build the bridge DLL, Allow extension DLLs to call
 # back into Pypy space functions



More information about the Pypy-commit mailing list