"an external module" we would like to monitor includes C extension module
and build-in module, e.g. fcntl, select.

On Tue, May 26, 2015 at 8:04 PM, Armin Rigo <ar...@tunes.org> wrote:

> 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

Reply via email to