2006-10-07 | paulb | raw files shortlog changelog graph | Added tuple initialiser. | |
lib/builtins.py (file) |
1.1 --- a/lib/builtins.py Sat Oct 07 01:49:50 2006 +0200 1.2 +++ b/lib/builtins.py Sat Oct 07 01:50:03 2006 +0200 1.3 @@ -907,9 +907,11 @@ 1.4 return boolean() 1.5 1.6 class tuple: 1.7 - def __init__(self): 1.8 + def __init__(self, *args): 1.9 self.next = None 1.10 self.last = self 1.11 + for arg in args: 1.12 + self.append(arg) 1.13 1.14 def __getitem__(self, index): 1.15 i = 0