projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1ff69
)
Instance methods: allow a NULL value for im_class.
author
Guido van Rossum
<guido@python.org>
Fri, 17 Aug 2001 12:07:34 +0000
(12:07 +0000)
committer
Guido van Rossum
<guido@python.org>
Fri, 17 Aug 2001 12:07:34 +0000
(12:07 +0000)
Objects/classobject.c
patch
|
blob
|
history
diff --git
a/Objects/classobject.c
b/Objects/classobject.c
index 82eb1d51ed9c9177884459f5972da187e578cf20..b4944f33c1af4ee6a88823b80cf6f45901f054c5 100644
(file)
--- a/
Objects/classobject.c
+++ b/
Objects/classobject.c
@@
-1973,7
+1973,7
@@
PyMethod_New(PyObject *func, PyObject *self, PyObject *class)
im->im_func = func;
Py_XINCREF(self);
im->im_self = self;
- Py_INCREF(class);
+ Py_
X
INCREF(class);
im->im_class = class;
PyObject_GC_Init(im);
return (PyObject *)im;
@@
-2040,7
+2040,7
@@
instancemethod_dealloc(register PyMethodObject *im)
PyObject_GC_Fini(im);
Py_DECREF(im->im_func);
Py_XDECREF(im->im_self);
- Py_DECREF(im->im_class);
+ Py_
X
DECREF(im->im_class);
im->im_self = (PyObject *)free_list;
free_list = im;
}