aboutsummaryrefslogtreecommitdiff
path: root/py/objtype.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-20 11:42:56 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-20 11:42:56 +1000
commit0a36a80f96e0951e868f1e253b1c82835a9d0918 (patch)
tree9fcc56e94fe45d0ec11c704d63d81951b44f5cb6 /py/objtype.c
parenta5b583adfdc9a081bb020f2fff1fa75cd2c4793e (diff)
py/objtype: Clarify comment about configuring inplace op methods.
In 0e80f345f88c5db7c2353a5a9d29ed08b0af42f4 the inplace operations __iadd__ and __isub__ were made unconditionally available, so the comment about this section is changed to reflect that.
Diffstat (limited to 'py/objtype.c')
-rw-r--r--py/objtype.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objtype.c b/py/objtype.c
index 41f364b93..93c299dd9 100644
--- a/py/objtype.c
+++ b/py/objtype.c
@@ -460,8 +460,7 @@ const byte mp_binary_op_method_name[MP_BINARY_OP_NUM_RUNTIME] = {
// MP_BINARY_OP_NOT_EQUAL, // a != b calls a == b and inverts result
[MP_BINARY_OP_CONTAINS] = MP_QSTR___contains__,
- // All inplace methods are optional, and normal methods will be used
- // as a fallback.
+ // If an inplace method is not found a normal method will be used as a fallback
[MP_BINARY_OP_INPLACE_ADD] = MP_QSTR___iadd__,
[MP_BINARY_OP_INPLACE_SUBTRACT] = MP_QSTR___isub__,
#if MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS