Message358731
In summary, a normal allocation for an object tracked by the Garbage collector follows these steps:
1.- Call PyObject_GC_New or PyObject_GC_NewVar or related APIs.
2.- Initialize everything and make sure the object is consistent.
3.- Call PyObject_GC_Track
You can check the implementation of containers types in the stdlib for reference or the documentation for the C API.
Closing this, feel free to reopen of you think there is something missing. |
|
Date |
User |
Action |
Args |
2019-12-20 19:20:35 | pablogsal | set | recipients:
+ pablogsal, h.venev, BTaskaya |
2019-12-20 19:20:35 | pablogsal | set | messageid: <1576869635.8.0.24069832964.issue23868@roundup.psfhosted.org> |
2019-12-20 19:20:35 | pablogsal | link | issue23868 messages |
2019-12-20 19:20:35 | pablogsal | create | |
|