Home | Trees | Indices | Help |
---|
|
object --+ | Constrain --+ | MinMax
>>> c = MinMax(1, 10) >>> c(1, debug="name") 1 >>> c(10, debug="name") 10 >>> c(11, debug="name") Traceback (most recent call last): ... ConstrainError: name: 11 > max 10 >>> c(-1, debug="name") Traceback (most recent call last): ... ConstrainError: name: -1 < min 1
>>> c = MinMax(0, 1) >>> c(0.5, debug="name") 0.5
|
|||
|
__init__(self,
min,
max) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
||
| __call__(self, value, debug="unknown") | ||
Inherited from |
|
|||
|
__slots__ = ('_min', '_max')
|
||
|
_max = <member '_max' of 'MinMax' objects>
|
||
|
_min = <member '_min' of 'MinMax' objects>
|
|
|||
Inherited from |
|
|
|
|
__slots__None
|
_maxNone
|
_minNone
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Sun Feb 4 17:00:22 2007 | http://epydoc.sourceforge.net |