Hi,<br><br>I recently found a problem in my python 3 port of ipython, where the __del__ method of objects, called as the program was exiting, could not find global functions.<br><br>On a hunch, I've just tested this in standard ipython, both 0.10 (in Ubuntu) and trunk. The problem exists in both cases (it only came to light in Python 3 because print is a function). The minimal code to reproduce it is:<br>

<br>class A(object):<br>    def __del__(self):<br>        input("ABC")<br><br>a = A()<br>exit()<br><br>Which gives: Exception NameError: "global name 'input' is not defined" in <bound method A.__del__ of <__main__.A object at 0x98634cc>> ignored<br>

<br>Thanks,<br>Thomas<br>