Re: [Pyobjc-dev] How to find the name of the calling method when writing Bundles
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2006-05-01 17:06:23
|
On 8-apr-2006, at 19:50, Saptarshi Guha wrote: > Hello, > I am using PyObjC to write a bundle for Mail.App. I have a class > > class MyWebComposeBackEnd(WebComposeBackEnd): > > in which I have overridden the method setSignature. Within in this > method I would like to know which method (in Mail.App) called me. > The tracebback module only gives me the stack trace within the > python code, but I would like to know which method in the Mail > program has called me. As far I know you can't know PyObjC has not functionality to tell you that and the only way to get that information would be to reimplement gdb's stack printing code. As that's unlikely to happen you're probably better of with using gdb to find out who calls your method. Ronald |