fixed the whole var args iterator stuff

This commit is contained in:
David Halter committed 2013-02-10 16:59:51 +01:00
1 parent a091ee92a4
commit df17c98061
2 files changed
+20 -18

No files matched your search

+5
View File
@@ -1073,6 +1073,11 @@ class Array(Call):
raise TypeError('no dicts allowed')
return iter(self.values)
def items(self):
if self.type != self.DICT:
raise TypeError('only dicts allowed')
return zip(self.keys, self.values)
def get_code(self):
map = {self.NOARRAY: '(%s)',
self.TUPLE: '(%s)',