diff options
Diffstat (limited to 'protocols.py')
-rw-r--r-- | protocols.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols.py b/protocols.py index edabb112..eb9fcc37 100644 --- a/protocols.py +++ b/protocols.py @@ -60,18 +60,18 @@ nodes.Const.infer_unary_op = const_infer_unary_op # binary operations ########################################################### -BIN_OP_IMPL = {'+': lambda a,b: a + b, - '-': lambda a,b: a - b, - '/': lambda a,b: a / b, - '//': lambda a,b: a // b, - '*': lambda a,b: a * b, - '**': lambda a,b: a ** b, - '%': lambda a,b: a % b, - '&': lambda a,b: a & b, - '|': lambda a,b: a | b, - '^': lambda a,b: a ^ b, - '<<': lambda a,b: a ^ b, - '>>': lambda a,b: a ^ b, +BIN_OP_IMPL = {'+': lambda a, b: a + b, + '-': lambda a, b: a - b, + '/': lambda a, b: a / b, + '//': lambda a, b: a // b, + '*': lambda a, b: a * b, + '**': lambda a, b: a ** b, + '%': lambda a, b: a % b, + '&': lambda a, b: a & b, + '|': lambda a, b: a | b, + '^': lambda a, b: a ^ b, + '<<': lambda a, b: a ^ b, + '>>': lambda a, b: a ^ b, } def const_infer_binary_op(self, operator, other, context): |