fparser Reference Guide  0.0.14
fparser.two.utils.ComparableMixin Class Reference
Inheritance diagram for fparser.two.utils.ComparableMixin:

Public Member Functions

def __lt__ (self, other)
 
def __le__ (self, other)
 
def __eq__ (self, other)
 
def __ge__ (self, other)
 
def __gt__ (self, other)
 
def __ne__ (self, other)
 

Detailed Description

Mixin class to provide rich comparison operators.

This mixin provides a set of rich comparison operators. Each class using
this mixin has to provide a _cmpkey() method that returns a key of objects
that can be compared.

See also http://python3porting.com/preparing.html#richcomparisons

Definition at line 196 of file utils.py.


The documentation for this class was generated from the following file: