InterpContext

Encapsulate a context within the Python interpreter.

This will preserve local variables and changes to the Python interpreter made by 'from ___future__ import feature' across calls to this.py_eval and this.py_stmts.

Otherwise, will not segregate global changes made to the Python interpreter.

Constructors

this
this()

Members

Functions

popDummyFrame
void popDummyFrame()
Undocumented in source. Be warned that the author may not have intended to support it.
pushDummyFrame
void pushDummyFrame()
Undocumented in source. Be warned that the author may not have intended to support it.
py_eval
T py_eval(string python, string file, size_t line)

Evaluate a python expression once within this context and return the result.

py_stmts
void py_stmts(string python, string file, size_t line)

Evaluate one or more python statements once.

Properties

opDispatch
PydObject opDispatch [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
opDispatch
T opDispatch [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

flags
PyCompilerFlags flags;
Undocumented in source.
frame
PyFrameObject* frame;
Undocumented in source.
globals
PydObject globals;

dict object: global variables in this context

locals
PydObject locals;

dict object: local variables in this context

Meta