after, after_cancel and Python 2.3

Edward K. Ream edreamleo at
Fri Aug 29 21:45:36 CEST 2003

> Maybe destroy did not trigger Python garbage collection in 8.3 as
> so data could have been erroneously accessible.

Thanks for your comments.  Note that my app does nothing with Tk data after
root.destroy(), so this shouldn't matter.  The real mystery seems to be why
the "after" routine is being called even after after_cancel.

I suppose it is time to start digging into the Tk code...


P.S. My comments about the "disgusting" hack in the tkinter after method
were dim.  The tmp list is the default value of the tmp argument of the
callit function, so whether tmp is global or not is irrelevant: changes to
tmp will affect later calls to callit.

Edward K. Ream   email:  edreamleo at
Leo: Literate Editor with Outlines

More information about the Python-list mailing list