Skip to content
  • Damien George's avatar
    py: Implement proper context save/restore for eval/exec; factor code. · c4d0868d
    Damien George authored
    This has benefits all round: code factoring for parse/compile/execute,
    proper context save/restore for exec, allow to sepcify globals/locals
    for eval, and reduced ROM usage by >100 bytes on stmhal and unix.
    
    Also, the call to mp_parse_compile_execute is tail call optimised for
    the import code, so it doesn't increase stack memory usage.
    c4d0868d