Skip to content

_tkinter leaks type references on initialization #123504

@ZeroIntensity

Description

@ZeroIntensity

Bug report

Bug description:

Reproducer:

$ ./python -Xshowrefcount -c "import tkinter"

Seems to be caused by the use of AddObjectRef on a strong reference in the _tkinter initialization function, causing a double Py_INCREF.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions