[New-bugs-announce] [issue36756] createcommand memory leak

Wolfram Kraus report at bugs.python.org
Tue Apr 30 05:09:45 EDT 2019


New submission from Wolfram Kraus <wolfram.kraus at hagen-partner.de>:

When using tk.createcommand you get a memory leak when you don't explicitly call tk.deletecommand to remove this command.
See attached file: __del__ never get's called due to the memory leak and because of that calling tk.deletecommand inside __del__ has no effect. If you remove the tk.createcommand everything works fine.

----------
components: Tkinter
files: tclmem_bug.py
messages: 341140
nosy: WKraus
priority: normal
severity: normal
status: open
title: createcommand memory leak
type: resource usage
versions: Python 2.7, Python 3.7
Added file: https://bugs.python.org/file48292/tclmem_bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36756>
_______________________________________


More information about the New-bugs-announce mailing list