mirror of
https://github.com/python/cpython.git
synced 2024-11-28 08:20:55 +01:00
12 lines
330 B
C
12 lines
330 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 *));
|