Hi Yicong, On 26 May 2015 at 14:00, Yicong Huang <hengha....@gmail.com> wrote: > Here is the plan: > 1. When the code try to import an external module, we invoke an inserted > function doLog().
What do you mean by "an external module"? Is it a CPython C extension module imported via cpyext? I really think you want to look at sys.settrace() or sys.setprofile(). A bientôt, Armin. _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev