From 3cc17c69ffd64dca55fe613f6e931585d8893c0d Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 14 Feb 2015 18:44:31 +0100 Subject: py: Allow retrieving a function's __name__. Disabled by default. Enabled on unix and stmhal ports. --- stmhal/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal') 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) -- cgit v1.2.3