def init_engine(**kwdargs): engine = DefaultEngine(**kwdargs) engine.add_builtin("sample", 2, builtin_sample) engine.add_builtin("value", 2, builtin_sample) engine.add_builtin("previous", 2, builtin_previous) engine.previous_result = None return engine
def init_engine(**kwdargs): engine = DefaultEngine(**kwdargs) engine.add_builtin('sample', 2, builtin_sample) engine.add_builtin('value', 2, builtin_sample) engine.add_builtin('previous', 2, builtin_previous) engine.previous_result = None return engine