1
0
forked from VimPlug/jedi

fixed the whole var args iterator stuff

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

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)',