Antoine Pitrou added the comment: Yeah, it sounds logical for m_free to do the clearing too (same as tp_dealloc vs. tp_clear).
Note that the PEP 3121 scheme turns out to be problematic for proper resource management: https://mail.python.org/pipermail/python-dev/2013-August/127862.html ---------- nosy: +ncoghlan, pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19972> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com