mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-08 12:40:17 +00:00
fix set __repr__
This commit is contained in:
parent
63a00d0faf
commit
197c639338
@ -406,7 +406,7 @@ class set:
|
|||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
if len(self) == 0:
|
if len(self) == 0:
|
||||||
return 'set()'
|
return 'set()'
|
||||||
return '{'+ ', '.join(self._a.keys()) + '}'
|
return '{'+ ', '.join([repr(i) for i in self._a.keys()]) + '}'
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return self._a.keys()
|
return self._a.keys()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user