Hi Frank,

On 6 February 2017 at 20:17, Frank Wang <[email protected]> wrote:
> Is there a way to distinguish in a mixed module function, e.g. len, whether
> the function is being called from the application or interpreter? Right now,
> I'm modifying len to print out information about an interpreter level
> object, but I only want it to print out when it's being called by an
> application.

The app-visible function is pypy.module.__builtin__.operation.len().
At interp-level we never call that but directly space.len().


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to