Message365926
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. |
|
Date |
User |
Action |
Args |
2020-04-07 17:37:32 | pablogsal | set | recipients:
+ pablogsal, tim.peters, vstinner, serhiy.storchaka, corona10, shihai1991 |
2020-04-07 17:37:32 | pablogsal | set | messageid: <1586281052.1.0.332976977998.issue40217@roundup.psfhosted.org> |
2020-04-07 17:37:32 | pablogsal | link | issue40217 messages |
2020-04-07 17:37:32 | pablogsal | create | |
|