Skip to content

Commit 93150a0

Browse files
committed
ports: Enable descriptors on stm32, esp8266, esp32 ports.
They are now efficient (in runtime performance) and provide a useful feature that's hard to obtain without them enabled. See issue adafruit#3644 and PR adafruit#3826 for background.
1 parent 36c1052 commit 93150a0

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

ports/esp32/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
// control over Python builtins
5959
#define MICROPY_PY_FUNCTION_ATTRS (1)
60+
#define MICROPY_PY_DESCRIPTORS (1)
6061
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
6162
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
6263
#define MICROPY_PY_BUILTINS_STR_CENTER (1)

ports/esp8266/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
3131
#define MICROPY_USE_INTERNAL_ERRNO (1)
3232
#define MICROPY_ENABLE_SCHEDULER (1)
33+
#define MICROPY_PY_DESCRIPTORS (1)
3334
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
3435
#define MICROPY_PY_BUILTINS_COMPLEX (0)
3536
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)

ports/stm32/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282

8383
// control over Python builtins
8484
#define MICROPY_PY_FUNCTION_ATTRS (1)
85+
#define MICROPY_PY_DESCRIPTORS (1)
8586
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
8687
#define MICROPY_PY_BUILTINS_STR_CENTER (1)
8788
#define MICROPY_PY_BUILTINS_STR_PARTITION (1)

0 commit comments

Comments
 (0)