From fdbbafb781d93fb452e3d72d3e2d881899ac98fd Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Tue, 26 Jan 2010 09:06:47 +0100 Subject: add AugAssing operators to BIN_OP_IMPL: we added '=' to the AugAssign opertor --HG-- branch : rebuild --- protocols.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols.py') 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): -- cgit v1.2.1