Attribute access of namedtuples aren't any quicker as you've surmised, it requires a hash lookup and an index lookup. Index lookup is as quick as normal tuple index lookups. The main reasons I reach for namedtuples is memory efficiency and much quicker creation times vs objects.
andreasvc|12 years ago
mmcnickle|12 years ago
pdonis|12 years ago
Yes, you're right, I was mistaken about how namedtuples work under the hood.