| Home | Trees | Index | Help |
|---|
| Module interval :: Class Largest |
|
Class representing the universal largest value
This type doesn't do much; it implements a pseudo-value that's larger than everything but itself.>>> infinity = Largest() >>> greatest = Largest() >>> 6234 < infinity True >>> 6234 == infinity False >>> 6234 > infinity False >>> infinity > infinity False >>> infinity == greatest True
| Method Summary | |
|---|---|
Compares object with another object | |
Returns a value that can be used for generating hashes | |
Returns the smallest universal value | |
Returns an evaluable expression representing this object | |
Returns a string representation of the object | |
| Method Details |
|---|
__cmp__(self,
other)
|
__hash__(self)
Returns a value that can be used for generating hashes
|
__neg__(self)Returns the smallest universal value The opposite of infinity is negative infinity, the smallest value.>>> print -Largest() -~ |
__repr__(self)
Returns an evaluable expression representing this object
|
__str__(self)
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Nov 9 22:22:38 2005 | http://epydoc.sf.net |