summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-03-31 22:46:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-03-31 22:46:06 (GMT)
commit6c94e6fb42a5318da5c736894ed0fa5d61f85e5f (patch)
tree151b3d4cae471a6612f4de025ce8360a2648f364 /Doc/library/collections.rst
parent12e6c256cad9161de894106a297e88587625a6ee (diff)
downloadcpython-6c94e6fb42a5318da5c736894ed0fa5d61f85e5f.zip
cpython-6c94e6fb42a5318da5c736894ed0fa5d61f85e5f.tar.gz
cpython-6c94e6fb42a5318da5c736894ed0fa5d61f85e5f.tar.bz2
Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 5f67759..93f220e 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -775,8 +775,15 @@ and more efficient to use a simple class declaration:
.. seealso::
- `Named tuple recipe <http://code.activestate.com/recipes/500261/>`_
- adapted for Python 2.4.
+ * `Named tuple recipe <http://code.activestate.com/recipes/500261/>`_
+ adapted for Python 2.4.
+
+ * `Recipe for named tuple abstract base class with a metaclass mix-in
+ <http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/>`_
+ by Jan Kaliszewski. Besides providing an :term:`abstract base class` for
+ named tuples, it also supports an alternate :term:`metaclass`-based
+ constructor that is convenient for use cases where named tuples are being
+ subclassed.
:class:`OrderedDict` objects