Mercurial > cpython-lru_cache-weakref
diff Include/classobject.h @ 225:7819e1615320 legacy-trunk
Renamed class members to instances and class methods to instance methods
,.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 05 May 1991 20:04:55 +0000 |
| parents | 06cc3b00671c |
| children | f01aee6155b3 |
line wrap: on
line diff
--- a/Include/classobject.h Sun May 05 20:03:07 1991 +0000 +++ b/Include/classobject.h Sun May 05 20:04:55 1991 +0000 @@ -30,15 +30,15 @@ but currently it isn't. We'll see if we can fix that later, sigh... */ -extern typeobject Classtype, Instancetype, Classmethodtype; +extern typeobject Classtype, Instancetype, Instancemethodtype; #define is_classobject(op) ((op)->ob_type == &Classtype) -#define is_instanceobject(op) ((op)->ob_type == &Classmembertype) -#define is_classmethodobject(op) ((op)->ob_type == &Classmethodtype) +#define is_instanceobject(op) ((op)->ob_type == &Instancetype) +#define is_instancemethodobject(op) ((op)->ob_type == &Instancemethodtype) extern object *newclassobject PROTO((object *, object *)); extern object *newinstanceobject PROTO((object *)); -extern object *newclassmethodobject PROTO((object *, object *)); +extern object *newinstancemethodobject PROTO((object *, object *)); -extern object *classmethodgetfunc PROTO((object *)); -extern object *classmethodgetself PROTO((object *)); +extern object *instancemethodgetfunc PROTO((object *)); +extern object *instancemethodgetself PROTO((object *));
