This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients efroemling, ethan.furman, gerald.dalley2, mark.dickinson, pitrou
Date 2021-10-13.17:38:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634146733.15.0.455266059299.issue42248@roundup.psfhosted.org>
In-reply-to
Content
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>]
History
Date User Action Args
2021-10-13 17:38:53pitrousetrecipients: + pitrou, mark.dickinson, ethan.furman, efroemling, gerald.dalley2
2021-10-13 17:38:53pitrousetmessageid: <1634146733.15.0.455266059299.issue42248@roundup.psfhosted.org>
2021-10-13 17:38:53pitroulinkissue42248 messages
2021-10-13 17:38:53pitroucreate