4 ms·
Reitz has a public Facebook post on this. Here are his comments: Harry Percival Looks nice! Y u no namedtuple? Kenneth Reitz Dictionaries are a much more pre
by glifchits 11y ago
Reitz has a public Facebook post on this. Here are his comments:
Harry Percival
Looks nice! Y u no namedtuple?
Kenneth Reitz
Dictionaries are a much more predictable interface ;)
Kenneth Reitz
Just because you can do something, doesn't mean you should!
- kenneth_reitz 11y agoWell, that's creepy.
- mattdeboard 11y agoI learned from a coworker recently that namedtuple is a much lower memory usage than a dictionary, so if you're dealing with lots and lots of data regularly, and lots of processes on a single machine, (i.e. memory is a concern) namedtuple might be a better choice.