Author jdemeyer
Recipients jdemeyer
Date 2018-05-03.17:54:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525370063.61.0.682650639539.issue33418@psf.upfronthosting.co.za>
In-reply-to
Content
This is a memory leak:

>>> while True:
...    def f(): pass
...    f.__doc__ = f

This also:

>>> while True:
...     f = [].append                                                                                                                                                   
...     f.__module__ = f

This is because the classes "function" and "builtin_function_or_method" do not implement tp_clear.
History
Date User Action Args
2018-05-03 17:54:23jdemeyersetrecipients: + jdemeyer
2018-05-03 17:54:23jdemeyersetmessageid: <1525370063.61.0.682650639539.issue33418@psf.upfronthosting.co.za>
2018-05-03 17:54:23jdemeyerlinkissue33418 messages
2018-05-03 17:54:23jdemeyercreate