Name of function within the function?
Holger Jannsen
holger at phoenix-edv.netzservice.de
Tue Jul 6 05:14:20 EDT 1999
More information about the Python-list mailing list
Tue Jul 6 05:14:20 EDT 1999
- Previous message (by thread): Name of function within the function?
- Next message (by thread): wddx wrapper?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
BTW: How do I get 'the instruction string of the code object' (reference manual s.17)? Or: With sys.exc_info()[2].tb_lasti I get the index to some list, but where could I get the list? Why is sys.exc_info()[2].tb_frame.f_lasti much higher that ..tb_lasti? Which stack/list is meant here? I'd like to get mostly 7 informations about an exception: 1)what kind of error (sys.exc_type?) 2)which script (sys.exc_info()[2].tb_frame.f_code?) 3)which line in script causes error? (sys.exc_info()[2].tb_lasti?) 4)which instruction causes error (???) 5)variables (ok, easy to get, I think...) 6)name of function (sys.exc_info()[2].tb_frame.f_code.co_name) 7)name of calling function (sys.exc_info()[2].tb_frame.f_back.f_code.co_name) Why are sys.exc_type and sys.exc_value are so different to sys.exc_info[:2]??? many questions, I know...;-) But YOU'll solve that! You're kind, aren't you???;-) Ciao, Holger
- Previous message (by thread): Name of function within the function?
- Next message (by thread): wddx wrapper?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list