No trees in the stdlib?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Jul 1 04:43:10 EDT 2009


In message <mailman.2146.1246002542.8015.python-list at python.org>, João Valverde wrote:

> But a dict can't be used to implement a (sorted) table ADT.

for key in sorted(the_dict.keys(), cmp = ... whatever ordering criteria you like ...) :
    ... do something with the_dict[key] ...
#end for





More information about the Python-list mailing list