Message399059
Good catch! Thank you Raymond for the third example.
I though that it can be easily fixed by calling tp_traverse() for submapping:
static int
mappingproxy_traverse(PyObject *self, visitproc visit, void *arg)
{
mappingproxyobject *pp = (mappingproxyobject *)self;
- Py_VISIT(pp->mapping);
- return 0;
+ return Py_TYPE(pp->mapping)->tp_traverse(pp->mapping, visit, arg);
}
but it does not work.
So I am okay with closing this issue. |
|
Date |
User |
Action |
Args |
2021-08-06 06:46:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, rhettinger, ncoghlan, brandtbucher, domdfcoding |
2021-08-06 06:46:25 | serhiy.storchaka | set | messageid: <1628232385.25.0.518688694269.issue43838@roundup.psfhosted.org> |
2021-08-06 06:46:25 | serhiy.storchaka | link | issue43838 messages |
2021-08-06 06:46:25 | serhiy.storchaka | create | |
|