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 corona10, pablogsal, serhiy.storchaka, shihai1991, tim.peters, vstinner
Date 2020-04-07.17:37:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586281052.1.0.332976977998.issue40217@roundup.psfhosted.org>
In-reply-to
Content
Also, as I mentioned, you don't need to modify all objects tp_traverse, only it's type.tp_traverse slot. For instance, all python objects know how to traverse stuff because they share the same tp_traverse:

https://github.com/python/cpython/blob/master/Objects/typeobject.c#L1082

So unless I am missing something, if you want to affect all heap types you just need to modify one tp_traverse in one place: the superclass.
History
Date User Action Args
2020-04-07 17:37:32pablogsalsetrecipients: + pablogsal, tim.peters, vstinner, serhiy.storchaka, corona10, shihai1991
2020-04-07 17:37:32pablogsalsetmessageid: <1586281052.1.0.332976977998.issue40217@roundup.psfhosted.org>
2020-04-07 17:37:32pablogsallinkissue40217 messages
2020-04-07 17:37:32pablogsalcreate