From c9fc62072330421dbbcfa316569b51601a7f0349 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 25 Oct 2014 21:59:14 +0100 Subject: py: Implement compile builtin, enabled only on unix port. This should be pretty compliant with CPython, except perhaps for some corner cases to do with globals/locals context. Addresses issue #879. --- py/builtintables.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/builtintables.c') diff --git a/py/builtintables.c b/py/builtintables.c index c8dea6bc7..2a5ced52d 100644 --- a/py/builtintables.c +++ b/py/builtintables.c @@ -91,6 +91,9 @@ STATIC const mp_map_elem_t mp_builtin_object_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_any), (mp_obj_t)&mp_builtin_any_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_bin), (mp_obj_t)&mp_builtin_bin_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_callable), (mp_obj_t)&mp_builtin_callable_obj }, +#if MICROPY_PY_BUILTINS_COMPILE + { MP_OBJ_NEW_QSTR(MP_QSTR_compile), (mp_obj_t)&mp_builtin_compile_obj }, +#endif { MP_OBJ_NEW_QSTR(MP_QSTR_chr), (mp_obj_t)&mp_builtin_chr_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_dir), (mp_obj_t)&mp_builtin_dir_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_divmod), (mp_obj_t)&mp_builtin_divmod_obj }, -- cgit v1.2.3