New submission from Mirano Tuk: There seems to be a memory leak in tkinter on OSX (Windows and Linux don't seem to be affected). Explicitly calling Tk.update() sometimes permanently allocates a multiple of 4096 bytes. Allocation happens more frequently if update calls are in close succession.
import time from tkinter import Tk root = Tk() while True: root.update() # Huge memory leak while True: root.update() # No memory leaks time.sleep(1) Issue occurs on python3.3 and above, did not test on older versions. ---------- components: Macintosh, Tkinter messages: 270550 nosy: Mirano Tuk, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: Tkinter memory leak on OS X type: resource usage versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27529> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com