how to convert code that uses cmp to python3

Ben Finney ben+python at benfinney.id.au
Fri Apr 8 03:47:18 EDT 2016


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

> But it was already working and optimized. The python3 approach forces
> me to make changes to working code and make the performance worse.

Yes, changing from Python 2 to Python 3 entails changing working code,
and entails different implementations for some things.

As for worse performance, that is something you can objectively measure.
What is the size of the performance reduction you have objectively
measured from this change?

-- 
 \        “Spam will be a thing of the past in two years' time.” —Bill |
  `\                                                 Gates, 2004-01-24 |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list