Helpers providing a bridge between the Python 2 __cmp__ and Python 3.
Python 2 uses methods called __cmp__ to override object comparison behavior;
in Python 3 __cmp__ is replaced by rich comparison functions.
Additionally, Python 2 allows code to compare objects of different types,
falling back to lexographical class-name comparisons if types are different (so
instance of "int" are always less than instances of "str").
This file offers some utilities to bridge the gap between Python 2 and 3.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["This file provides utilities to bridge the gap between Python 2's `__cmp__` method for object comparison and Python 3's rich comparison functions."],["Python 2 allows comparisons between objects of different types, whereas Python 3 uses rich comparison functions to replace the behavior of `__cmp__`."],["The `cmp(...)` function emulates Python 2's `cmp` in Python 3."],["The `total_ordering_from_cmp(...)` class decorator fills in missing ordering methods based on the `__cmp__` function."]]],[]]