Rod, Am 02.04.2014 um 12:41 schrieb Rod Fitzsimmons Frey <rodf...@gmail.com>:
> To test my understanding: is it legitimate for the python mapping code to > call canon methods directly? yes, definitely - it's just what the interpreter itself does all the time the basic logic of the interpreter inner loop is: - parse and validate a block - execute a block - which usually generates canon calls; sometimes interpreter state is needed to determine parameters for those calls but basically all of the interpreter state is exposed in Python as well again this isnt terribly well documented, but basically all the interpreter state is visible to Python - access: fine; modify from Python: make sure you understand the implications by reading the interpreter C++ code the rather large setup_struct which is the primare 'state blob' here : http://goo.gl/OaOwcH has equivalent Python attributes exposed here: http://goo.gl/glRtyM or for instance, the internal representation of a block after parsing: http://goo.gl/d1q8nq is Python-exposed here: http://goo.gl/rDnYGS also, have a look at this testcase how interpreter state is accessed from Python: http://goo.gl/XtqKmB > Would that mess up state for the interpreter > when it continued executing? I dont quite understand 'when it continued executing?', can you give an example? - Michael > > Rod > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users