Package fuzz :: Module fnumber :: Class RealRange
[hide private]
[frames] | no frames]

Class RealRange

source code

object --+    
         |    
     tuple --+
             |
            RealRange

Real range class.

Instance Methods [hide private]
RealRange
__add__(self, other)
Addition operation.
source code
RealRange
__sub__(self, other)
Subtraction operation.
source code
bool
__contains__(self, value)
Report whether a given value is within this range.
source code
bool
issubset(self, other)
Report whether another range contains this range.
source code
bool
issuperset(self, other)
Report whether this range contains another range.
source code
bool
__le__(self, other)
Report whether another range contains this range.
source code
bool
__ge__(self, other)
Report whether this range contains another range.
source code
bool
__lt__(self, other)
Report whether another range strictly contains this range.
source code
bool
__gt__(self, other)
Report whether this range strictly contains another range.
source code

Inherited from tuple: __eq__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __hash__, __iter__, __len__, __mul__, __ne__, __repr__, __rmul__, __sizeof__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, arg=(0.0, 0.0))
Instatiation method.
source code
Properties [hide private]
float size
Return the size of the range.

Inherited from object: __class__

Method Details [hide private]

__new__(cls, arg=(0.0, 0.0))
Static Method

source code 

Instatiation method. Verifies the validity of the range argument before returning the range object.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__add__(self, other)
(Addition operator)

source code 

Addition operation.

Parameters:
Returns: RealRange
Sum of ranges.
Overrides: tuple.__add__

__sub__(self, other)
(Subtraction operator)

source code 

Subtraction operation.

Parameters:
Returns: RealRange
Difference of ranges.

__contains__(self, value)
(In operator)

source code 

Report whether a given value is within this range.

Parameters:
  • value (float) - The value.
Returns: bool
True if within the range, false otherwise.
Overrides: tuple.__contains__

issubset(self, other)

source code 

Report whether another range contains this range.

Parameters:
Returns: bool
True if a subset, false otherwise.

issuperset(self, other)

source code 

Report whether this range contains another range.

Parameters:
Returns: bool
True if a superset, false otherwise.

__le__(self, other)
(Less-than-or-equals operator)

source code 

Report whether another range contains this range.

Parameters:
Returns: bool
True if a subset, false otherwise.
Overrides: tuple.__le__

__ge__(self, other)
(Greater-than-or-equals operator)

source code 

Report whether this range contains another range.

Parameters:
Returns: bool
True if a superset, false otherwise.
Overrides: tuple.__ge__

__lt__(self, other)
(Less-than operator)

source code 

Report whether another range strictly contains this range.

Parameters:
Returns: bool
True if a strict subset, false otherwise.
Overrides: tuple.__lt__

__gt__(self, other)
(Greater-than operator)

source code 

Report whether this range strictly contains another range.

Parameters:
Returns: bool
True if a strict superset, false otherwise.
Overrides: tuple.__gt__

Property Details [hide private]

size

Return the size of the range.

Get Method:
unreachable.size(self) - Return the size of the range.
Type:
float