how to convert code that uses cmp to python3

Marko Rauhamaa marko at pacujo.net
Sat Apr 9 10:54:41 EDT 2016


Antoon Pardon <antoon.pardon at rece.vub.ac.be>:

> Now this probably is not a problem most of the times, but when you
> work with tree's this kind of comparison to make a three way decision
> happens often and the lower you descend in the tree, the close your
> argument will be with the keys of the nodes you visit, making it more
> and more probable, you have a large common prefix.

Yes.

> So in these circumstances it is more likely to be problematic.

I don't believe so.


Marko



More information about the Python-list mailing list