mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
9223351617
commit
d4ba73c75b
2 changed files with 16 additions and 8 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue