"flupke" wrote: >> Then i got a tip that you can register a function that needs to be >> called when the object is going to be deleted. >> For instance to register a function __exit, you do this:
>> class line: >> def __init__(s,glob,argl,color=''): >> atexit.register(s.__exit) > I don't know what's wrong in your example. Here it works (doesn't help > you of course). I would first try with an easy example an try to test > the atexit functionality like that. It seems that the problem you are > having isn't related to the atexit part. do you (or whoever gave you the tip) have the slightest idea what atexit does? </F> -- http://mail.python.org/mailman/listinfo/python-list