how to convert code that uses cmp to python3

Antoon Pardon antoon.pardon at rece.vub.ac.be
Fri Apr 8 03:35:31 EDT 2016


Op 08-04-16 om 00:21 schreef Chris Angelico:
> On Fri, Apr 8, 2016 at 6:56 AM, Antoon Pardon
> <antoon.pardon at rece.vub.ac.be> wrote:
>> That solution will mean I will have to do about 100% more comparisons
>> than previously.
> Try it regardless. You'll probably find that performance is fine.
> Don't prematurely optimize!
>
> ChrisA

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

-- 
Antoon Pardon



More information about the Python-list mailing list