From 3b90969b4256d4edd0fae4965a9bf5b1d5aa26fb Mon Sep 17 00:00:00 2001 From: ArtichautCosmique Date: Wed, 20 Oct 2021 22:26:01 +0200 Subject: [PATCH] [mpy] Enabled property/etc decorators (#52) --- python/port/genhdr/qstrdefs.in.h | 5 +++++ python/port/mpconfigport.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index b22aedf71..5a6ba3426 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -363,6 +363,11 @@ Q(upper) Q(value) Q(values) Q(zip) +Q(doc) +Q(property) +Q(getter) +Q(setter) +Q(deleter) // Ion QSTR Q(ion) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index b2935e636..af81426c3 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -61,7 +61,7 @@ #define MICROPY_PY_BUILTINS_FROZENSET (1) // Whether to support property object -#define MICROPY_PY_BUILTINS_PROPERTY (0) +#define MICROPY_PY_BUILTINS_PROPERTY (1) // Whether to support unicode strings #define MICROPY_PY_BUILTINS_STR_UNICODE (1)