how to convert code that uses cmp to python3

Paul Rubin no.email at nospam.invalid
Thu Apr 7 15:26:11 EDT 2016


Chris Angelico <rosuav at gmail.com> writes:
> First off, what does it actually *mean* to have a tree with numbers
> and keys as strings? Are they ever equal? Are all integers deemed
> lower than all strings? Something else?

If the AVL tree's purpose is to be an alternative lookup structure to
Python's hash-based dictionaries, then it doesn't really matter what the
ordering between values is, as long as it's deterministic.



More information about the Python-list mailing list