[Python-ideas] A subclassing API for named tuples?

Jan Kaliszewski zuo at chopin.edu.pl
Fri Feb 15 00:33:57 CET 2013


Please remember that in the Py3k docs is a link to my namedtuple.abc 
recipe which covers most of the issues discussed in this thread (+ ABC 
registration/isinstance/issubclass checking).

Cheers.
*j

PS. If we wanted to have the "automatic-always-__slots__" feature 
(discussed in this thread), we probably need to dedent line #57 of the 
recipe one indentation level left...

PPS. As for Py3.3, the recipe is outdateed a bit as it uses deprecated 
@abstractproperty -- but it can be easily fixed.




More information about the Python-ideas mailing list