diff options
| author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-05-20 20:01:07 +0300 |
|---|---|---|
| committer | Steve Dower <steve.dower@python.org> | 2019-05-20 10:01:07 -0700 |
| commit | 5ae1c84bcd13b766989fc3f1e1c851e7bd4c1faa (patch) | |
| tree | 4a34e4e3ab7cf2a80ebf4644b5c2a9ee9c8c09a2 /Lib/_weakrefset.py | |
| parent | 77b3b7701a34ecf6316469e05b79bb91de2addfa (diff) | |
| download | cpython-git-5ae1c84bcd13b766989fc3f1e1c851e7bd4c1faa.tar.gz | |
bpo-36949: Implement __repr__ on WeakSet (GH-13415)
Diffstat (limited to 'Lib/_weakrefset.py')
| -rw-r--r-- | Lib/_weakrefset.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/_weakrefset.py b/Lib/_weakrefset.py index 304c66f59b..7a84823622 100644 --- a/Lib/_weakrefset.py +++ b/Lib/_weakrefset.py @@ -194,3 +194,6 @@ class WeakSet: def isdisjoint(self, other): return len(self.intersection(other)) == 0 + + def __repr__(self): + return repr(self.data) |
