Author erlendaasland
Recipients erlendaasland, petr.viktorin
Date 2021-05-12.14:50:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620831055.79.0.708160674103.issue44116@roundup.psfhosted.org>
In-reply-to
Content
Adding GC to _csv types:
$ cat 
import sys
import gc

for i in range(10):
    import csv
    del sys.modules['_csv']
    del sys.modules['csv']
    del csv
    gc.collect()

    print(sys.gettotalrefcount())
$ ./python.exe bug.py
73164
73164
73166
73166
73166
73166
73166
73166
73166
73166
History
Date User Action Args
2021-05-12 14:50:55erlendaaslandsetrecipients: + erlendaasland, petr.viktorin
2021-05-12 14:50:55erlendaaslandsetmessageid: <1620831055.79.0.708160674103.issue44116@roundup.psfhosted.org>
2021-05-12 14:50:55erlendaaslandlinkissue44116 messages
2021-05-12 14:50:55erlendaaslandcreate