Ejemplo n.º 1
0
 def __eq__(self, other):
     from system.helpers import equals, w_true
     return equals(self, other) is w_true
Ejemplo n.º 2
0
def int_add(self, other):
    assert equals(core.type(other), _tp_integer)
    return W_Integer(self.int() + other.int())
Ejemplo n.º 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)