Author vstinner
Recipients Mark.Shannon, benjamin.peterson, christian.heimes, inada.naoki, jdemeyer, larry, lukasz.langa, miss-islington, nascheme, ned.deily, pablogsal, petr.viktorin, pitrou, tim.peters, vstinner
Date 2019-10-03.20:52:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570135940.06.0.102419940344.issue38006@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2019-10-03 20:52:20vstinnersetrecipients: + vstinner, tim.peters, nascheme, pitrou, larry, christian.heimes, benjamin.peterson, ned.deily, petr.viktorin, inada.naoki, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal, miss-islington
2019-10-03 20:52:20vstinnersetmessageid: <1570135940.06.0.102419940344.issue38006@roundup.psfhosted.org>
2019-10-03 20:52:20vstinnerlinkissue38006 messages
2019-10-03 20:52:19vstinnercreate