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