[issue36756] tkinter tk.createcommand memory leak

2019-08-05 Thread Tal Einat
Tal Einat added the comment: Tkinter calls Tcl_DeleteInterp when a Tk object is garbage collected, and it registers a cleanup callback for each registered command, which according to the Tcl docs should be called upon Tcl_DeleteInterp[1]. So this must either be a bug in Tcl or something in t

[issue36756] tkinter tk.createcommand memory leak

2019-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 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. T

[issue36756] tkinter tk.createcommand memory leak

2019-04-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gpolo, serhiy.storchaka title: createcommand memory leak -> tkinter tk.createcommand memory leak ___ Python tracker ___ _