summaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2015-02-14 18:44:31 +0100
committerDamien George <damien.p.george@gmail.com>2015-03-20 23:13:32 +0000
commit3cc17c69ffd64dca55fe613f6e931585d8893c0d (patch)
tree73fe88917c5b65ac3fdb679e5aee7338ed2fa66b /stmhal
parent07b8dc68d667c212f9a3710b74e90e05e1032316 (diff)
py: Allow retrieving a function's __name__.
Disabled by default. Enabled on unix and stmhal ports.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 1d3378739..e1d532d1e 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -55,6 +55,7 @@
#define MICROPY_STREAMS_NON_BLOCK (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
+#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BUILTINS_FROZENSET (1)