Popular recipes by Andrew Durdin http://code.activestate.com/recipes/users/2019895/2004-09-05T08:01:16-07:00ActiveState Code RecipesTuples with named elements (Python) 2004-09-05T08:01:16-07:00Andrew Durdinhttp://code.activestate.com/recipes/users/2019895/http://code.activestate.com/recipes/303439-tuples-with-named-elements/ <p style="color: grey"> Python recipe 303439 by <a href="/recipes/users/2019895/">Andrew Durdin</a> . Revision 2. </p> <p>NamedTuple is a tuple subclass that allows its elements to be named. Elements can be accessed by index and by name.</p> Tuples with named elements - using metaclasses (Python) 2004-09-05T02:30:29-07:00Andrew Durdinhttp://code.activestate.com/recipes/users/2019895/http://code.activestate.com/recipes/303481-tuples-with-named-elements-using-metaclasses/ <p style="color: grey"> Python recipe 303481 by <a href="/recipes/users/2019895/">Andrew Durdin</a> . </p> <p>NamedTupleMetaclass is a metaclass for creating tuples with named elements that can be accessed by index and by name.</p> <p>NamedTuple is a class factory for NamedTupleMetaclass instances.</p> <p>This is an improved version of recipe #303439</p>