Great!
sys.excepthook() is exactly what I was looking for. Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am writing an application that initializes the global namespace, and
afterwards, leaves the user with the python prompt. Now, I want to
catch NameErrors in user input like e.g.
some_name
Traceback (most recent call last):
File stdin, line 1, in ?
NameError: name 'some_name' is not
Harold Fellermann a écrit :
Hi,
I am writing an application that initializes the global namespace, and
afterwards, leaves the user with the python prompt. Now, I want to
catch NameErrors in user input like e.g.
some_name
Traceback (most recent call last):
File stdin, line 1, in ?