[Tutor] Distinction between tuples and lists

Kent Johnson kent37 at tds.net
Thu Jan 1 19:42:32 CET 2009

On Thu, Jan 1, 2009 at 9:43 AM, jadrifter <jadrifter at gmail.com> wrote:
> Being able to use struct notation (employee.age
> instead of employee[4]) would be nice but also not that difficult to
> implement as a class either.

Python 2.6 added collections.namedtuple() which is a factory for
classes like this:


More information about the Tutor mailing list