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
1 changed files with 2 additions and 2 deletions

View File

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