diff options
author | stijn <stinos@zoho.com> | 2015-02-14 18:44:31 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-20 23:13:32 +0000 |
commit | 3cc17c69ffd64dca55fe613f6e931585d8893c0d (patch) | |
tree | 73fe88917c5b65ac3fdb679e5aee7338ed2fa66b /py/mpconfig.h | |
parent | 07b8dc68d667c212f9a3710b74e90e05e1032316 (diff) | |
download | micropython-3cc17c69ffd64dca55fe613f6e931585d8893c0d.tar.gz micropython-3cc17c69ffd64dca55fe613f6e931585d8893c0d.zip |
py: Allow retrieving a function's __name__.
Disabled by default. Enabled on unix and stmhal ports.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index e8f7cc8909..094d8d78a7 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -359,6 +359,11 @@ typedef double mp_float_t; /*****************************************************************************/ /* Fine control over Python builtins, classes, modules, etc */ +// Whether to implement attributes on functions +#ifndef MICROPY_PY_FUNCTION_ATTRS +#define MICROPY_PY_FUNCTION_ATTRS (0) +#endif + // Whether str object is proper unicode #ifndef MICROPY_PY_BUILTINS_STR_UNICODE #define MICROPY_PY_BUILTINS_STR_UNICODE (0) |