twisted.python.compat.comparable(klass) function documentationtwisted.python.compat
          View Source
          
        
      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 |