Sami wrote:
> Does this mean that one should always use the command line to run a
> python program?
Yes.
Peter
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote:
> Sami wrote:
>
>> Hello,
>>
>> I am new to Python.
>>
>> I tried to hook my own ExceptionPrintingFunction sys.excepthook but it
>> does not work.
>>
>> This is what I wrote:
>> ---
>> import sys
>>
>> def MyOwn
Sami wrote:
> Hello,
>
> I am new to Python.
>
> I tried to hook my own ExceptionPrintingFunction sys.excepthook but it
> does not work.
>
> This is what I wrote:
> ---
> import sys
>
> def MyOwnExceptHook(typ, val, tb):
> pri
Hello,
I am new to Python.
I tried to hook my own ExceptionPrintingFunction sys.excepthook but it
does not work.
This is what I wrote:
---
import sys
def MyOwnExceptHook(typ, val, tb):
print "Inside my own hook"
sys.e