From 28fa84b4454ef253dfba5f1ceb023be2184a7271 Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 14 Feb 2015 18:43:54 +0100 Subject: py: Add optional support for descriptors' __get__ and __set__ methods. Disabled by default. Enabled on unix and windows ports. --- unix/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unix') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index fd8e52267..014272e7a 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -58,6 +58,7 @@ #define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1) #define MICROPY_CAN_OVERRIDE_BUILTINS (1) #define MICROPY_PY_FUNCTION_ATTRS (1) +#define MICROPY_PY_DESCRIPTORS (1) #define MICROPY_PY_BUILTINS_STR_UNICODE (1) #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_BUILTINS_FROZENSET (1) -- cgit v1.2.3