diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-19 13:36:17 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-19 13:36:17 +0000 |
commit | 2a3e2b903394376fcf5722904453febd7472ee25 (patch) | |
tree | 49da1c7af3fe1726a550c6a3ca189acdb5b838d6 /py/qstrdefs.h | |
parent | 8427c5b76c9326ab3bc060fb729c1f0dbe17facd (diff) | |
download | micropython-2a3e2b903394376fcf5722904453febd7472ee25.tar.gz micropython-2a3e2b903394376fcf5722904453febd7472ee25.zip |
py: Add execfile function (from Python 2); enable in stmhal port.
Adds just 60 bytes to stmhal binary. Addresses issue #362.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index f183c256fb..e91d360703 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -167,6 +167,9 @@ Q(divmod) Q(enumerate) Q(eval) Q(exec) +#if MICROPY_PY_BUILTINS_EXECFILE +Q(execfile) +#endif Q(filter) #if MICROPY_PY_BUILTINS_FLOAT Q(float) |