[pypy-svn] r74652 - pypy/trunk/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Fri May 21 21:41:04 CEST 2010


Author: afa
Date: Fri May 21 21:41:02 2010
New Revision: 74652

Modified:
   pypy/trunk/pypy/module/cpyext/stubs.py
Log:
These functions are implemented now


Modified: pypy/trunk/pypy/module/cpyext/stubs.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/stubs.py	(original)
+++ pypy/trunk/pypy/module/cpyext/stubs.py	Fri May 21 21:41:02 2010
@@ -2275,19 +2275,6 @@
     changes in your code for properly supporting 64-bit systems."""
     raise NotImplementedError
 
- at cpython_api([PyObject], PyObject)
-def PyMethod_Self(space, meth):
-    """Return the instance associated with the method meth if it is bound, otherwise
-    return NULL."""
-    borrow_from()
-    raise NotImplementedError
-
- at cpython_api([PyObject], PyObject)
-def PyMethod_GET_SELF(space, meth):
-    """Macro version of PyMethod_Self() which avoids error checking."""
-    borrow_from()
-    raise NotImplementedError
-
 @cpython_api([], rffi.INT_real, error=CANNOT_FAIL)
 def PyMethod_ClearFreeList(space, ):
     """Clear the free list. Return the total number of freed items.
@@ -2357,12 +2344,6 @@
     """
     raise NotImplementedError
 
- at cpython_api([PyObject, rffi.CCHARP], rffi.INT_real, error=-1)
-def PyObject_DelAttrString(space, o, attr_name):
-    """Delete attribute named attr_name, for object o. Returns -1 on failure.
-    This is the equivalent of the Python statement del o.attr_name."""
-    raise NotImplementedError
-
 @cpython_api([PyObject, PyObject, rffi.INTP], rffi.INT_real, error=-1)
 def PyObject_Cmp(space, o1, o2, result):
     """
@@ -2391,18 +2372,6 @@
     """
     raise NotImplementedError
 
- at cpython_api([PyObject, PyObject, PyObject], rffi.INT_real, error=-1)
-def PyObject_SetItem(space, o, key, v):
-    """Map the object key to the value v.  Returns -1 on failure.  This is the
-    equivalent of the Python statement o[key] = v."""
-    raise NotImplementedError
-
- at cpython_api([PyObject, PyObject], rffi.INT_real, error=-1)
-def PyObject_DelItem(space, o, key):
-    """Delete the mapping for key from o.  Returns -1 on failure. This is the
-    equivalent of the Python statement del o[key]."""
-    raise NotImplementedError
-
 @cpython_api([PyObject], PyObject)
 def PyObject_Dir(space, o):
     """This is equivalent to the Python expression dir(o), returning a (possibly
@@ -2412,27 +2381,6 @@
     is active then NULL is returned but PyErr_Occurred() will return false."""
     raise NotImplementedError
 
- at cpython_api([], PyObject)
-def PyEval_GetBuiltins(space, ):
-    """Return a dictionary of the builtins in the current execution frame,
-    or the interpreter of the thread state if no frame is currently executing."""
-    borrow_from()
-    raise NotImplementedError
-
- at cpython_api([], PyObject)
-def PyEval_GetLocals(space, ):
-    """Return a dictionary of the local variables in the current execution frame,
-    or NULL if no frame is currently executing."""
-    borrow_from()
-    raise NotImplementedError
-
- at cpython_api([], PyObject)
-def PyEval_GetGlobals(space, ):
-    """Return a dictionary of the global variables in the current execution frame,
-    or NULL if no frame is currently executing."""
-    borrow_from()
-    raise NotImplementedError
-
 @cpython_api([], PyFrameObject)
 def PyEval_GetFrame(space, ):
     """Return the current thread state's frame, which is NULL if no frame is



More information about the Pypy-commit mailing list