Re: New Tkinter release

Guido.van.Rossum@cwi.nl
Tue, 12 Jul 1994 16:07:17 +0200

> The latest tkinter calls the atexit() function.
>
> SunOS and MIPS Ultrix (and maybe others) don't have this; they have
> on_exit() instead. The quick'n'dirty fix is to put
>
> #define atexit(x) on_exit(x, 0)
>
> at the beginning of tkintermodule.c .
> Something else for configure to check, Guido?

I don't like either on_exit or atexit, and surely there are systems
that have neither. The proper solution is to add an interface to
Python to register cleanup procedures for modules that need them. But
for the time being, this hack (or the version that Bill Jansen posted,
which does essentially the same thing without #define) is fine.

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
<URL:http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>