Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59044:884922a2ef7f
Date: 2012-11-22 22:46 +0100
http://bitbucket.org/pypy/pypy/changeset/884922a2ef7f/

Log:    PyMethod_Class() is no more.

diff --git a/pypy/module/cpyext/funcobject.py b/pypy/module/cpyext/funcobject.py
--- a/pypy/module/cpyext/funcobject.py
+++ b/pypy/module/cpyext/funcobject.py
@@ -108,13 +108,6 @@
     assert isinstance(w_method, Method)
     return borrow_from(w_method, w_method.w_instance)
 
-@cpython_api([PyObject], PyObject)
-def PyMethod_Class(space, w_method):
-    """Return the class object from which the method meth was created; if this 
was
-    created from an instance, it will be the class of the instance."""
-    assert isinstance(w_method, Method)
-    return borrow_from(w_method, w_method.w_class)
-
 def unwrap_list_of_strings(space, w_list):
     return [space.str_w(w_item) for w_item in space.fixedview(w_list)]
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to