mirror of
https://github.com/python/cpython.git
synced 2024-12-01 13:55:45 +08:00
19 lines
462 B
C
19 lines
462 B
C
/* Method object interface */
|
|
|
|
extern typeobject Methodtype;
|
|
|
|
#define is_methodobject(op) ((op)->ob_type == &Methodtype)
|
|
|
|
typedef object *(*method) FPROTO((object *, object *));
|
|
|
|
extern object *newmethodobject PROTO((char *, method, object *));
|
|
extern method getmethod PROTO((object *));
|
|
extern object *getself PROTO((object *));
|
|
|
|
struct methodlist {
|
|
char *ml_name;
|
|
method ml_meth;
|
|
};
|
|
|
|
extern object *findmethod PROTO((struct methodlist *, object *, char *));
|