RangeBoundary() expressions ¶
New in version 3.0.
- class RangeBoundary ( inclusive_lower = True , inclusive_upper = False ) ¶
-
- inclusive_lower ¶
-
If
True
(default), the lower bound is inclusive'['
, otherwise it’s exclusive'('
.
- inclusive_upper ¶
-
If
False
(default), the upper bound is exclusive')'
, otherwise it’s inclusive']'
.
A
RangeBoundary()
expression represents the range boundaries.
It can be used with a custom range functions that expected boundaries, for example
to define
ExclusionConstraint
.