Commits

Anonymous committed 105a531

Give mapping views a usable repr.

Comments (0)

Files changed (1)

     def __len__(self):
         return len(self._mapping)
 
+    def __repr__(self):
+        return '{0.__class__.__name__}({0._mapping!r})'.format(self)
+
 
 class KeysView(MappingView, Set):