Antoine Pitrou <pit...@free.fr> added the comment:
It appears this is *not* fixed in 3.10.0: Python 3.10.0 (default, Oct 13 2021, 08:45:17) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import signal, gc >>> class App: pass ... >>> def create_app(): ... app = App() ... signal.signal(signal.SIGINT, signal.SIG_DFL) ... >>> [obj for obj in gc.get_objects() if type(obj) is App] [] >>> create_app() >>> [obj for obj in gc.get_objects() if type(obj) is App] [<__main__.App object at 0x7f2d3f3f1c30>] ---------- nosy: +pitrou resolution: fixed -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42248> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com