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.
This commit is contained in:
Damien George
2014-10-25 21:59:14 +01:00
parent e5a3759ff5
commit c9fc620723
7 changed files with 106 additions and 3 deletions

View File

@@ -213,6 +213,12 @@ Q(value)
Q(write)
Q(zip)
#if MICROPY_PY_BUILTINS_COMPILE
Q(compile)
Q(code)
Q(single)
#endif
Q(sep)
Q(end)