Hi Frank, no, unfortunately there's not really a shortcut to exposing the methods, functions and attributes via a mixed module, because you need to think about the semantics of parameter type and result conversion for every such function anyway.
Do you have trouble to get it to work at all? Or is it just tedious? If the former, there are some hints about mixed modules here: http://doc.pypy.org/en/latest/coding-guide.html#implementing-a-mixed-interpreter-application-level-module For the latter, if you need to do this for absolutely *every* interpreter level attribute, there may be a way to achieve this effect with some magic meta-programming, though I'd have to think a bit how. Cheers, Carl Friedrich On 27/01/17 16:45, Frank Wang wrote: > Hi, > > At the application level, I want to modify some interpreter-level > attributes of an object. Right now, I have the interpreter level > functions that allow me to modify the interpreter object. Is the easiest > way to have an application access interpreter level attributes to use a > Mixed Module with interpreter level definitions? > > I'm having a bit of trouble getting it to work, so I was wondering if > there was a much easier way for an application to modify interpreter > objects or call interpreter level functions that modify an object. > > Thanks, > Frank > > > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev > _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev