Message365922
If object A owns a strong reference to object B, and A participates in cyclic gc, and B may be part of a cycle, then it's necessary and sufficient that A's type's tp_traverse implementation invoke Py_VISIT() passing A's pointer to B.
It would be a Really Bad Idea to add special cases to the gc module to spare some specific type(s) from following that (currently) utterly uniform rule. |
|
Date |
User |
Action |
Args |
2020-04-07 17:22:39 | tim.peters | set | recipients:
+ tim.peters, vstinner, corona10, pablogsal, shihai1991 |
2020-04-07 17:22:39 | tim.peters | set | messageid: <1586280159.79.0.950758508198.issue40217@roundup.psfhosted.org> |
2020-04-07 17:22:39 | tim.peters | link | issue40217 messages |
2020-04-07 17:22:39 | tim.peters | create | |
|