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 vstinner
Recipients Mark.Shannon, christian.heimes, jdemeyer, lukasz.langa, pablogsal, petr.viktorin, pitrou, vstinner
Date 2019-09-02.13:09:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567429765.16.0.695078746544.issue38006@roundup.psfhosted.org>
In-reply-to
Content
PyFunction_Type.tp_clear changed in bpo-33418 (previously, it was equal to 0: no clear method):

commit 3c452404ae178b742967589a0bb4a5ec768d76e0
Author: INADA Naoki <methane@users.noreply.github.com>
Date:   Wed Jul 4 11:15:50 2018 +0900

    bpo-33418: Add tp_clear for function object (GH-8058)
    
    Without tp_clear, GC can't break cyclic reference.
    It will cause memory leak when cyclic reference is
    created intentionally.
History
Date User Action Args
2019-09-02 13:09:25vstinnersetrecipients: + vstinner, pitrou, christian.heimes, petr.viktorin, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal
2019-09-02 13:09:25vstinnersetmessageid: <1567429765.16.0.695078746544.issue38006@roundup.psfhosted.org>
2019-09-02 13:09:25vstinnerlinkissue38006 messages
2019-09-02 13:09:24vstinnercreate