Conversation started Jun 30, 2011 at 17:01.
Jun 30, 2011 17:01
@KronoS [] = list, () = set, {} = dictionary
oh geez...
ok so what's the difference?
that's what you get when you don't read books ;)
list and dictionaries are mutable
@IvoFlipse agreed! or take any classes
sets are immutable
dictionaries are hash tables and store items based on key:value combos
they can't be sorted, because it uses its own sorting to make lookups blazingly fast
immutable being that once you make it it cannot be changed right?
Jun 30, 2011 17:03
lists can be sorted, index whatever
@IvoFlipse oh ok... that makes sense... if it's already 'sorted' according to a key... all we have to know if the key index
yes, but obviously the easy workaround when you do need to change it is to make a new set with the same content in a different order and overwrite the old one
@IvoFlipse right
 
Conversation ended Jun 30, 2011 at 17:04.