Return plain lists from HyDict.keys, .values

This commit is contained in:
Kodi Arfer 2019-08-02 17:13:40 -04:00
parent 8576d00ce8
commit cc8948d9b9

View File

@ -327,10 +327,10 @@ class HyDict(HySequence):
return '' + g("HyDict()") return '' + g("HyDict()")
def keys(self): def keys(self):
return self[0::2] return list(self[0::2])
def values(self): def values(self):
return self[1::2] return list(self[1::2])
def items(self): def items(self):
return list(zip(self.keys(), self.values())) return list(zip(self.keys(), self.values()))