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 serhiy.storchaka
Recipients WKraus, gpolo, serhiy.storchaka
Date 2019-05-02.06:30:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556778636.69.0.594975781252.issue36756@roundup.psfhosted.org>
In-reply-to
Content
There are two problems: one in your code and one in tkinter or Tcl.

The problem with your code is that it creates new Tcl interpreters in loop. Create a single Tcl interpreters and create commands in a loop. This will reduce the leak to constant amount.

The problem with either the tkinter module or the Tcl interpreter is that the reference to created commands should be released when delete the command explicitly (Tcl_DeleteCommand), or create a new command with the same name (Tcl_CreateCommand), or delete the Tcl interpreter (Tcl_DeleteInterp), but for unknown cause this doesn't happen in the last case.
History
Date User Action Args
2019-05-02 06:30:36serhiy.storchakasetrecipients: + serhiy.storchaka, gpolo, WKraus
2019-05-02 06:30:36serhiy.storchakasetmessageid: <1556778636.69.0.594975781252.issue36756@roundup.psfhosted.org>
2019-05-02 06:30:36serhiy.storchakalinkissue36756 messages
2019-05-02 06:30:36serhiy.storchakacreate