This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pablogsal
Recipients BTaskaya, h.venev, pablogsal
Date 2019-12-20.19:20:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576869635.8.0.24069832964.issue23868@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-12-20 19:20:35pablogsalsetrecipients: + pablogsal, h.venev, BTaskaya
2019-12-20 19:20:35pablogsalsetmessageid: <1576869635.8.0.24069832964.issue23868@roundup.psfhosted.org>
2019-12-20 19:20:35pablogsallinkissue23868 messages
2019-12-20 19:20:35pablogsalcreate