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

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Mar 29 16:39:03 CEST 2010


Author: xoraxax
Date: Mon Mar 29 16:39:01 2010
New Revision: 73074

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
RPythonify error message.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	Mon Mar 29 16:39:01 2010
@@ -1,3 +1,4 @@
+import os
 import sys
 
 from pypy.rpython.lltypesystem import rffi, lltype
@@ -22,7 +23,7 @@
 from pypy.module.cpyext.slotdefs import slotdefs
 
 
-class W_GetSetPropertyEx(GetSetProperty): # XXX fix this to be rpython
+class W_GetSetPropertyEx(GetSetProperty):
     def getter(self, space, w_self):
         return generic_cpy_call(space, self.getset.c_get, w_self, self.getset.c_closure)
 
@@ -78,7 +79,7 @@
         if not func:
             continue
         if wrapper_func is None and wrapper_func_kwds is None:
-            print >>sys.stderr, method_name, "used by the type but no wrapper function defined!"
+            os.write(2, method_name + " used by the type but no wrapper function defined!")
             continue
         dict_w[method_name] = PyDescr_NewWrapper(space, pto, method_name, wrapper_func,
                 wrapper_func_kwds, doc, func_voidp)



More information about the Pypy-commit mailing list