Ejemplo n.º 1
0
Archivo: Util.py Proyecto: billynip/map
 def __radd__(self, other):
     return UserList.__radd__(self, CLVar(other))
Ejemplo n.º 2
0
Archivo: Util.py Proyecto: billynip/map
 def __radd__(self, other):
     result = UserList.__radd__(self, other)
     result.unique = False
     return result
Ejemplo n.º 3
0
 def __radd__(self, other):
     return UserList.__radd__(self, CLVar(other))
Ejemplo n.º 4
0
 def __radd__(self, other):
     result = UserList.__radd__(self, other)
     result.unique = False
     return result
Ejemplo n.º 5
0
 def test_radd_specials(self):
     u = UserList("eggs")
     u2 = "spam" + u
     self.assertEqual(u2, list("spameggs"))
     u2 = u.__radd__(UserList("spam"))
     self.assertEqual(u2, list("spameggs"))
 def test_radd_specials(self):
     u = UserList("eggs")
     u2 = "spam" + u
     self.assertEqual(u2, list("spameggs"))
     u2 = u.__radd__(UserList("spam"))
     self.assertEqual(u2, list("spameggs"))
Ejemplo n.º 7
0
 def test_radd_specials(self):
     u = UserList('eggs')
     u2 = 'spam' + u
     self.assertEqual(u2, list('spameggs'))
     u2 = u.__radd__(UserList('spam'))
     self.assertEqual(u2, list('spameggs'))