namedtuple in Python 2.5
I am aware that the namedtuple class exists from 2.6 onwards. Is there a way of implementing similar functionality in Python 2.5 so normal tuples can be made to achieve this?
Student = namedtuple('Student', 'name serial')
The actual source of the namedtuple in Python is this recipe here: Named Tuples.
The resulting recipe has been well received, so it was proposed and accepted for inclusion in the collections module for Py2.6.