aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorPaul Sokolovsky2015-01-30 01:42:49 +0200
committerPaul Sokolovsky2015-01-31 00:35:56 +0200
commit98c4bc3facff901a38cdbc2df99ee5da17ba3f2e (patch)
tree0137a13fff24444b9114f8ab8c53ed794a0d70f7 /py/objtype.c
parent32bade19d952c23c2fd499050abb17cb80dc7559 (diff)
py: Add MICROPY_PY_ALL_SPECIAL_METHODS and __iadd__ special method under it.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 53408a07e..f905831f2 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -378,9 +378,11 @@ const qstr mp_binary_op_method_name[] = {
MP_BINARY_OP_INPLACE_XOR,
MP_BINARY_OP_INPLACE_AND,
MP_BINARY_OP_INPLACE_LSHIFT,
- MP_BINARY_OP_INPLACE_RSHIFT,
- MP_BINARY_OP_INPLACE_ADD,
- MP_BINARY_OP_INPLACE_SUBTRACT,
+ MP_BINARY_OP_INPLACE_RSHIFT,*/
+ #if MICROPY_PY_ALL_SPECIAL_METHODS
+ [MP_BINARY_OP_INPLACE_ADD] = MP_QSTR___iadd__,
+ #endif
+ /*MP_BINARY_OP_INPLACE_SUBTRACT,
MP_BINARY_OP_INPLACE_MULTIPLY,
MP_BINARY_OP_INPLACE_FLOOR_DIVIDE,
MP_BINARY_OP_INPLACE_TRUE_DIVIDE,