From 5ab5ac5448573fa34cc2316d895706c24a412f36 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 4 May 2015 19:45:53 +0300 Subject: modbuiltins: Add NotImplemented builtin constant. From https://docs.python.org/3/library/constants.html#NotImplemented : "Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. Its truth value is true." Some people however appear to abuse it to mean "no value" when None is a legitimate value (don't do that). --- unix/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'unix/mpconfigport.h') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 5e9b854bda..31f3afed16 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -64,6 +64,7 @@ #define MICROPY_PY_BUILTINS_MEMORYVIEW (1) #define MICROPY_PY_BUILTINS_FROZENSET (1) #define MICROPY_PY_BUILTINS_COMPILE (1) +#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1) #define MICROPY_PY_MICROPYTHON_MEM_INFO (1) #define MICROPY_PY_ALL_SPECIAL_METHODS (1) #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1) -- cgit v1.2.3