# HG changeset patch # User Paul Boddie # Date 1309100489 -7200 # Node ID 26002b8d2dce8b9b3db10879a1c9c5f82289151f # Parent 29c1a981024908cf449eb5202b8959d931738acd Removed redundant attributes. diff -r 29c1a9810249 -r 26002b8d2dce micropython/common.py --- a/micropython/common.py Sun Jun 26 14:15:57 2011 +0200 +++ b/micropython/common.py Sun Jun 26 17:01:29 2011 +0200 @@ -371,55 +371,6 @@ # Useful data. -comparison_methods = { - "==" : ("__eq__", "__eq__"), - "!=" : ("__ne__", "__ne__"), - "<" : ("__lt__", "__gt__"), - "<=" : ("__le__", "__ge__"), - ">=" : ("__ge__", "__le__"), - ">" : ("__gt__", "__lt__"), - "is" : None, - "is not" : None, - "in" : None, - "not in" : None - } - -augassign_methods = { - "+=" : ("__iadd__", ("__add__", "__radd__")), - "-=" : ("__isub__", ("__sub__", "__rsub__")), - "*=" : ("__imul__", ("__mul__", "__rmul__")), - "/=" : ("__idiv__", ("__div__", "__rdiv__")), - "//=" : ("__ifloordiv__", ("__floordiv__", "__rfloordiv__")), - "%=" : ("__imod__", ("__mod__", "__rmod__")), - "**=" : ("__ipow__", ("__pow__", "__rpow__")), - "<<=" : ("__ilshift__", ("__lshift__", "__rlshift__")), - ">>=" : ("__irshift__", ("__rshift__", "__rrshift__")), - "&=" : ("__iand__", ("__and__", "__rand__")), - "^=" : ("__ixor__", ("__xor__", "__rxor__")), - "|=" : ("__ior__", ("__or__", "__ror__")) - } - -binary_methods = { - "Add" : ("__add__", "__radd__"), - "Bitand" : ("__and__", "__rand__"), - "Bitor" : ("__or__", "__ror__"), - "Bitxor" : ("__xor__", "__rxor__"), - "Div" : ("__div__", "__rdiv__"), - "FloorDiv" : ("__floordiv__", "__rfloordiv__"), - "LeftShift" : ("__lshift__", "__rlshift__"), - "Mod" : ("__mod__", "__rmod__"), - "Mul" : ("__mul__", "__rmul__"), - "Power" : ("__pow__", "__rpow__"), - "RightShift" : ("__rshift__", "__rrshift__"), - "Sub" : ("__sub__", "__rsub__") - } - -unary_methods = { - "Invert" : "__invert__", - "UnaryAdd" : "__pos__", - "UnarySub" : "__neg__" - } - operator_functions = { # Binary operations.