From e1b3e107dad232f18ccc0facc05ab3f0af3c06f6 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 8 Jun 2018 09:43:45 +0200 Subject: [PATCH] [python] Enable builtins frozenset --- python/port/genhdr/qstrdefs.in.h | 1 + python/port/mpconfigport.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index 5c2c32966..98ab81234 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -181,6 +181,7 @@ Q(format) Q(frexp) Q(from_bytes) Q(fromkeys) +Q(frozenset) Q(function) Q(gamma) Q(generator) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index 74726e038..3fd89d9a4 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -44,6 +44,9 @@ // Whether to support bytearray object #define MICROPY_PY_BUILTINS_BYTEARRAY (0) +// Whether to support frozenset object +#define MICROPY_PY_BUILTINS_FROZENSET (1) + // Whether to support property object #define MICROPY_PY_BUILTINS_PROPERTY (0)