Open adarshk7 opened 10 years ago
The Interval class constructor needs to be changed so that it supports also the following scenarios:
IntInterval(2, 5, inc_upper=True) == IntInterval('(2, 5]']
IntInterval(2, 5, inc_lower=True) == IntInterval('[2, 5)']
IntInterval(2, 5, inc_lower=True, inc_upper=True) == IntInterval[2, 5]
Add support for interval initialization.
eg. IntInterval(2, 5) == IntInterval((2, 5)) and IntInterval[2, 5] == IntInterval([2, 5])