Message353875
> 1. Docs should be changed to encourage implementing the full gc protocol for "all" containers. Spell out what can go wrong if they don't. Be upfront about that history has, at times, proved us too optimistic about that ever since weakrefs were added.
Would it make any sense to add an opt-in option to emit a warning when a new type is created with Py_TPFLAGS_HAVE_GC but it doesn't implement tp_traverse? Maybe also emit a warning if it doesn't implement tp_clear?
Maybe it could be a ResourceWarning emitted in development mode, when -X dev is used on the command line. |
|
Date |
User |
Action |
Args |
2019-10-03 20:52:20 | vstinner | set | recipients:
+ vstinner, tim.peters, nascheme, pitrou, larry, christian.heimes, benjamin.peterson, ned.deily, petr.viktorin, methane, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal, miss-islington |
2019-10-03 20:52:20 | vstinner | set | messageid: <1570135940.06.0.102419940344.issue38006@roundup.psfhosted.org> |
2019-10-03 20:52:20 | vstinner | link | issue38006 messages |
2019-10-03 20:52:19 | vstinner | create | |
|