Structure accessible by attribute name or index

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Wed Mar 17 11:35:41 EDT 2010


Christian Heimes a écrit :
> However Python 2.6 has a new factory that creates a similar
> datatype called named tuple:
> http://docs.python.org/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields
> 

Duh... Should spend some more time reading 2.6's What's New :(



More information about the Python-list mailing list