Skip to content

Commit 24c8eda

Browse files
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy