Issue #9507: Named tuple repr will now automatically display the right
name in a tuple subclass.
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 741c7a0..66d373d 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -605,7 +605,7 @@
<BLANKLINE>
def __repr__(self):
'Return a nicely formatted representation string'
- return 'Point(x=%r, y=%r)' % self
+ return self.__class__.__name__ + '(x=%r, y=%r)' % self
<BLANKLINE>
def _asdict(self):
'Return a new OrderedDict which maps field names to their values'