Example #1
0
 def __eq__(self, other):
     from system.helpers import equals, w_true
     return equals(self, other) is w_true
Example #2
0
def int_add(self, other):
    assert equals(core.type(other), _tp_integer)
    return W_Integer(self.int() + other.int())
Example #3
0
def assertEqual(self, first, other):
    from system.helpers import equals
    from bool import w_true

    self.assertTrue(equals(first, other) is w_true)