Return plain lists from HyDict.keys, .values
This commit is contained in:
parent
8576d00ce8
commit
cc8948d9b9
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user