STINNER Victor <vstin...@python.org> added the comment:
Hi, you should use the multiphase initialization API which has clear and free functions. https://www.python.org/dev/peps/pep-0489/#the-proposal See for example the source code of the Modules/_abc.c extension. ---------- nosy: +vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44301> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com