mirror of https://github.com/python/cpython.git
Rename class methods to instance methods (at least where user-visible)
This commit is contained in:
parent
864407d112
commit
569fce7901
|
@ -202,8 +202,8 @@ typeobject Instancetype = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* And finally, here are class method objects */
|
/* And finally, here are instance method objects
|
||||||
/* (Really methods of instances) */
|
(accidentally called class methods) */
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
OB_HEAD
|
OB_HEAD
|
||||||
|
@ -283,7 +283,7 @@ classmethod_dealloc(cm)
|
||||||
typeobject Classmethodtype = {
|
typeobject Classmethodtype = {
|
||||||
OB_HEAD_INIT(&Typetype)
|
OB_HEAD_INIT(&Typetype)
|
||||||
0,
|
0,
|
||||||
"class method",
|
"instance method",
|
||||||
sizeof(classmethodobject),
|
sizeof(classmethodobject),
|
||||||
0,
|
0,
|
||||||
classmethod_dealloc, /*tp_dealloc*/
|
classmethod_dealloc, /*tp_dealloc*/
|
||||||
|
|
Loading…
Reference in New Issue