Here you can see the full list of changes between each intervals release.
- Added is_connected utility method
- Made interval constructor throw IllegalArgument exception for intervals such as (a..a)
- Fixed some edge cases with interval intersections
- Fixed interval union (#33)
- Added support for step argument in
from_string
factory method - Added better error message when passing string as a first constructor argument
- Added canonicalize to main module import
- Added factory methods for easier interval initialization
open
,closed
,open_closed
,closed_open
,greater_than
,at_least
,less_than
,at_most
andall
- Renamed
open
andclosed
properties tois_open
andis_closed
- Removed interval constructor string parsing
- Added new class method from_string
- Drop python 2.6 support
- Made intervals hashable
- Added CharacterInterval class
- Fixed interval datetime type guessing
- Fixed code examples in docs
- Fixed IntInterval step rounding
- Added better test suite (now docs are tested also)
- Fixed setup.py packages
- Added
__bool__
implementation for all interval types - Added
__int__
support forIntInterval
- Added step argument to
AbstractInterval
constructor
- Improved hyphen range parsing
- Fixed
glb
andlub
methods - Added
inf
andsup
methods
- Fixed comparison to
None
- Added
glb
andlub
methods
- Fixed
__lt__
and__le__
operators (total_ordering
was not working)
- Added improved arithmetics
- Added
centre
,radius
,discrete
andlength
properties - Added support for custom typed intervals
- Added support for discrete intervals
- Added support for
__radd__
and__rsub__
- Added
degenerate
property - Added support for contains
- Added
Interval
subclasses (IntInterval
,DateInterval
,DateTimeInterval
,FloatInterval
andDecimalInterval
) - Updated infinity dependency to 0.1.3
- Added interval
length
property
- Initial public release