From 217d0ccc1081c44c4fb053cd84cecb39d14e4e7e Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 8 Jun 2018 09:51:00 +0200 Subject: [PATCH] [python] Enable builtins reversed --- python/port/genhdr/qstrdefs.in.h | 2 ++ python/port/mpconfigport.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index 9fe3e9c8c..0f5a0d4e9 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -101,6 +101,7 @@ Q(__path__) Q(__qualname__) Q(__repl_print__) Q(__repr__) +Q(__reversed__) Q(__setitem__) Q(__str__) Q(__sub__) @@ -269,6 +270,7 @@ Q(remove) Q(replace) Q(repr) Q(reverse) +Q(reversed) Q(rfind) Q(rindex) Q(round) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index 9df0222a3..6ed2ec4fc 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -50,9 +50,6 @@ // Whether to support property object #define MICROPY_PY_BUILTINS_PROPERTY (0) -// Whether to support reversed function(type) -#define MICROPY_PY_BUILTINS_REVERSED (0) - // Whether to set __file__ for imported modules #define MICROPY_PY___FILE__ (0)