Re: __getattr__ for global namespace?

2006-05-06 Thread Harold Fellermann
Great! sys.excepthook() is exactly what I was looking for. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

__getattr__ for global namespace?

2006-05-04 Thread Harold Fellermann
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

Re: __getattr__ for global namespace?

2006-05-04 Thread Bruno Desthuilliers
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 ?