Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 24c8eda

Browse files
author
Paul Sokolovsky
committed
unix: Enable MICROPY_PY_REVERSE_SPECIAL_METHODS.
With inplace methods now disabled by default, it makes sense to enable reverse methods, as they allow for more useful features, e.g. allow for datetime module to implement both 2 * HOUR and HOUR * 2 (where HOUR is e.g. timedelta object).
1 parent 0e80f34 commit 24c8eda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/unix/mpconfigport.h

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
#define MICROPY_PY_BUILTINS_POW3 (1)
8686
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
8787
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
88+
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
8889
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
8990
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
9091
#define MICROPY_PY_SYS_EXIT (1)

0 commit comments

Comments
 (0)