From 5ae1c84bcd13b766989fc3f1e1c851e7bd4c1faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Ta=C5=9Fkaya?= <47358913+isidentical@users.noreply.github.com> Date: Mon, 20 May 2019 20:01:07 +0300 Subject: bpo-36949: Implement __repr__ on WeakSet (GH-13415) --- Lib/_weakrefset.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/_weakrefset.py') 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) -- cgit v1.2.1