示例#1
0
 def __radd__(self, other):
     for obj in other:
         validateInformation(obj)
     UserList.__radd__(self, other)
 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"))
示例#3
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"))
示例#4
0
 def __radd__(self, other):
     for obj in other:
         validateInformation(obj)
     UserList.__radd__(self, other)
示例#5
0
 def __radd__(self, other):
     result = UserList.__radd__(self, other)
     result.unique = False
     return result
示例#6
0
 def __radd__(self, other):
     result = UserList.__radd__(self, other)
     result.unique = False
     return result
示例#7
0
文件: Util.py 项目: jmatt/scons
 def __radd__(self, other):
     return UserList.__radd__(self, CLVar(other))