diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-02 21:41:01 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-02 21:41:01 (GMT) |
commit | ba4105c1335503e3d441abbd7a3e74d255ead1a5 (patch) | |
tree | bc5410e38b50797d7471fcbdbe359787fafc0c04 /Include/methodobject.h | |
parent | e43d33a4db0c0c9afcb70a26f682abfe889e845b (diff) | |
download | cpython-ba4105c1335503e3d441abbd7a3e74d255ead1a5.zip cpython-ba4105c1335503e3d441abbd7a3e74d255ead1a5.tar.gz cpython-ba4105c1335503e3d441abbd7a3e74d255ead1a5.tar.bz2 |
#3247: Get rid of Py_FindMethod:
Second step: keep tp_getattr functions when they are complex,
but use PyObject_GenericGetAttr() as a fallback.
These were the last occurrences of Py_FindMethod.
Diffstat (limited to 'Include/methodobject.h')
-rw-r--r-- | Include/methodobject.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Include/methodobject.h b/Include/methodobject.h index cd1d265..81e84ce 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -43,8 +43,6 @@ struct PyMethodDef { }; typedef struct PyMethodDef PyMethodDef; -PyAPI_FUNC(PyObject *) Py_FindMethod(PyMethodDef[], PyObject *, const char *); - #define PyCFunction_New(ML, SELF) PyCFunction_NewEx((ML), (SELF), NULL) PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, PyObject *); @@ -70,14 +68,6 @@ PyAPI_FUNC(PyObject *) PyCFunction_NewEx(PyMethodDef *, PyObject *, #define METH_COEXIST 0x0040 -typedef struct PyMethodChain { - PyMethodDef *methods; /* Methods of this type */ - struct PyMethodChain *link; /* NULL or base type */ -} PyMethodChain; - -PyAPI_FUNC(PyObject *) Py_FindMethodInChain(PyMethodChain *, PyObject *, - const char *); - typedef struct { PyObject_HEAD PyMethodDef *m_ml; /* Description of the C function to call */ |