mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
final patches from Neil Schemenauer for garbage collection
This commit is contained in:
parent
4e542a3d99
commit
c5007aa5c3
16 changed files with 956 additions and 18 deletions
|
|
@ -56,6 +56,7 @@ new_instance(unused, args)
|
|||
Py_INCREF(dict);
|
||||
inst->in_class = (PyClassObject *)klass;
|
||||
inst->in_dict = dict;
|
||||
PyObject_GC_Init(inst);
|
||||
return (PyObject *)inst;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue