3 ms·
"this is a data structure that is at the guts of basically every python object. Classes are dicts. Modules are dicts. Packages are probably dicts. Don't worry
by hprotagonist 9y ago
"this is a data structure that is at the guts of basically every python object. Classes are dicts. Modules are dicts. Packages are probably dicts. Don't worry though, it's underrated!"
@_@
- whatshisface 9y agoPython has its own very cleverly optimized dict implementation: http://pybites.blogspot.com/2008/10/pure-python-dictionary-implementation.html http://pybites.blogspot.com/2008/10/pure-python-dictionary-i...
- hprotagonist 9y agohettinger's updates at pycon this year: it's better! https://www.youtube.com/watch?v=npw4s1QTmPg https://www.youtube.com/watch?v=npw4s1QTmPg
- dom0 9y agoPython (and Ruby and some others) form the category of hash table interpreters—since most things are hash tables.
- draw_down 9y agoI like both kinds of data structures- maps and lists. (Just kidding, list is but a degenerate case of map)