diff options
author | Raymond Hettinger <python@rcn.com> | 2011-03-31 22:46:39 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-03-31 22:46:39 (GMT) |
commit | d6056b7d8d53581748eaacb31e3df23d4adb0561 (patch) | |
tree | 863c128a800aa69dc205360539dfb5918634ad25 | |
parent | 112226f962d2aa2779ead60aeaee9d87ed249307 (diff) | |
parent | 6c94e6fb42a5318da5c736894ed0fa5d61f85e5f (diff) | |
download | cpython-d6056b7d8d53581748eaacb31e3df23d4adb0561.zip cpython-d6056b7d8d53581748eaacb31e3df23d4adb0561.tar.gz cpython-d6056b7d8d53581748eaacb31e3df23d4adb0561.tar.bz2 |
Issue #7796: Add link to Jan Kaliszewski's alternate constructor and ABC for named tuples.
-rw-r--r-- | Doc/library/collections.rst | 11 | ||||
-rw-r--r-- | Misc/ACKS | 1 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index e531d40..587d634 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -857,8 +857,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 @@ -452,6 +452,7 @@ Tamito Kajiyama Peter van Kampen Rafe Kaplan Jacob Kaplan-Moss +Jan Kaliszewski Arkady Koplyarov Lou Kates Hiroaki Kawai |