diff options
-rw-r--r-- | Lib/_abcoll.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index c7636ec..45747a6 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -392,6 +392,9 @@ class MappingView(Sized): def __len__(self): return len(self._mapping) + def __repr__(self): + return '{0.__class__.__name__}({0._mapping!r})'.format(self) + class KeysView(MappingView, Set): |