On Thu, 12 Aug 2010 16:28:10 -0700 (PDT) "Edward K. Ream" <[email protected]> wrote:
> Anyone have any ideas how an exec can modify the context of the > caller? http://docs.python.org/release/2.6.5/reference/simple_stmts.html#exec is hard to read. but I think you can write exec g.findTestScript(c,'@common leoRst test code') or exec code_string in unified_context or exec code_string in globals_context, locals_context you can do exec code_string in globals(), locals() although that seems to be offering code_string the opportunity to modify locals() without even knowing it's doing it. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
