[pypy-dev] Modifying Interpreter-level Object from Application

Armin Rigo armin.rigo at gmail.com
Tue Feb 7 11:24:01 EST 2017


Hi Frank,

On 6 February 2017 at 20:17, Frank Wang <frankw at mit.edu> 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.


More information about the pypy-dev mailing list