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. --- unix/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unix') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index a7ebf21ed..fd8e52267 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -57,6 +57,7 @@ #define MICROPY_OPT_COMPUTED_GOTO (1) #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (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