On Thu, Jan 1, 2009 at 9:43 AM, jadrifter <jadrif...@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:
http://docs.python.org/dev/library/collections.html#collections.namedtuple

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to