From b67388a9a99b7bfd03f1f0b93ff6dd530a7f7edd Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Thu, 7 Jun 2018 17:48:58 +0200 Subject: [PATCH] [python] Enable builtins set --- python/port/genhdr/qstrdefs.in.h | 13 +++++++++++++ python/port/mpconfigport.h | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index e0b9f738f..13ba0540b 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -120,6 +120,7 @@ Q(_star_) Q(abs) Q(acos) Q(acosh) +Q(add) Q(all) Q(any) Q(append) @@ -155,7 +156,10 @@ Q(default) Q(degrees) Q(dict) Q(dict_view) +Q(difference) +Q(difference_update) Q(dir) +Q(discard) Q(divmod) Q(e) Q(end) @@ -194,8 +198,11 @@ Q(index) Q(input) Q(insert) Q(int) +Q(intersection) +Q(intersection_update) Q(isalpha) Q(isdigit) +Q(isdisjoint) Q(isfinite) Q(isinf) Q(isinstance) @@ -203,6 +210,8 @@ Q(islower) Q(isnan) Q(isspace) Q(issubclass) +Q(issubset) +Q(issuperset) Q(isupper) Q(items) Q(iter) @@ -265,6 +274,7 @@ Q(rstrip) Q(seed) Q(send) Q(sep) +Q(set) Q(setattr) Q(setdefault) Q(sin) @@ -283,6 +293,8 @@ Q(str) Q(strip) Q(sum) Q(super) +Q(symmetric_difference) +Q(symmetric_difference_update) Q(tan) Q(tanh) Q(throw) @@ -291,6 +303,7 @@ Q(trunc) Q(tuple) Q(type) Q(uniform) +Q(union) Q(update) Q(upper) Q(utf-8) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index b301cc05b..3eca01e96 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -44,9 +44,6 @@ // Whether to support bytearray object #define MICROPY_PY_BUILTINS_BYTEARRAY (0) -// Whether to support set object -#define MICROPY_PY_BUILTINS_SET (0) - // Whether to support property object #define MICROPY_PY_BUILTINS_PROPERTY (0)