Class decorator that ensures support for the special __cmp__ method.

On Python 2 this does nothing.

On Python 3, __eq__, __lt__, etc. methods are added to the class, relying on __cmp__ to implement their comparisons.

Function __eq__ Undocumented
Function __ne__ Undocumented
Function __lt__ Undocumented
Function __le__ Undocumented
Function __gt__ Undocumented
Function __ge__ Undocumented
def __eq__(self, other): (source)
Undocumented
def __ne__(self, other): (source)
Undocumented
def __lt__(self, other): (source)
Undocumented
def __le__(self, other): (source)
Undocumented
def __gt__(self, other): (source)
Undocumented
def __ge__(self, other): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.