[Python-Dev] Can I introspect/reflect to get arguments exec()?

PJ Eby pje at telecommunity.com
Thu Mar 28 20:44:10 CET 2013


On Thu, Mar 28, 2013 at 6:43 AM, Rocky Bernstein <rocky at gnu.org> wrote:
> Of course the debugger uses sys.settrace too, so the evil-ness of that is
> definitely not a concern. But possibly I need to make sure that since the
> DecoratorTools and the debugger both hook into trace hooks they play nice
> together and fire in the right order.

DecoratorTools' trace hooking is unrelated to its linecache
functionality.  All you need from it is the cache_source() function;
you can pretty much ignore everything else for your purposes.  You'll
just need to give it a phony filename to work with, and the associated
string.


More information about the Python-Dev mailing list