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

xoraxax at codespeak.net xoraxax at codespeak.net
Sun Apr 11 22:22:05 CEST 2010


Author: xoraxax
Date: Sun Apr 11 22:22:04 2010
New Revision: 73655

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/stubsactive.py
Log:
Add PyObject_Print stub.

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/stubsactive.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/stubsactive.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/stubsactive.py	Sun Apr 11 22:22:04 2010
@@ -33,3 +33,14 @@
     """Return a new PyLongObject object from a C unsigned long, or
     NULL on failure."""
     raise NotImplementedError
+
+FILE = rffi.VOIDP_real.TO
+FILEP = lltype.Ptr(FILE)
+ at cpython_api([PyObject, FILEP, rffi.INT_real], rffi.INT_real, error=-1)
+def PyObject_Print(space, o, fp, flags):
+    """Print an object o, on file fp.  Returns -1 on error.  The flags argument
+    is used to enable certain printing options.  The only option currently supported
+    is Py_PRINT_RAW; if given, the str() of the object is written
+    instead of the repr()."""
+    raise NotImplementedError
+



More information about the Pypy-commit mailing list