summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols.py b/protocols.py
index 09b37a6e..ff3d0e50 100644
--- a/protocols.py
+++ b/protocols.py
@@ -74,6 +74,8 @@ BIN_OP_IMPL = {'+': lambda a, b: a + b,
'<<': lambda a, b: a << b,
'>>': lambda a, b: a >> b,
}
+for key, impl in BIN_OP_IMPL.items():
+ BIN_OP_IMPL[key+'='] = impl
def const_infer_binary_op(self, operator, other, context):
for other in other.infer(context):