H
HMS Surprise
Is there a way that a function may access the doc string or func_name
of the caller?
Thanks,
jvh
of the caller?
Thanks,
jvh
Is there a way that a function may access the doc string or func_name
of the caller?
Thanks,
jvh
Yes. The inspect module allows you to look up the call stack for
information on the caller, the caller's caller, local vars, etc.
-- Paul
Thanks Paul.
Running jython 2.2. No module named inspect or cInspect
drat...
HMS said:Is there a way that a function may access the doc string or func_name
of the caller?
Thanks,
jvh
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.