Move the definition of PyMethodObject to classobject.h, so it can define

macros for more efficient access to the fields.
This commit is contained in:
Guido van Rossum 1998-07-10 15:46:33 +00:00
parent 9223351617
commit d4ba73c75b
2 changed files with 16 additions and 8 deletions

View file

@ -1411,14 +1411,6 @@ PyTypeObject PyInstance_Type = {
In case (b), im_self is NULL
*/
typedef struct {
PyObject_HEAD
PyObject *im_func; /* The function implementing the method */
PyObject *im_self; /* The instance it is bound to, or NULL */
PyObject *im_class; /* The class that defined the method */
} PyMethodObject;
static PyMethodObject *free_list;
PyObject *