Bump python-intervals from 1.10.0 to 1.10.0.post1
Bumps python-intervals from 1.10.0 to 1.10.0.post1.
Release notes
Sourced from python-intervals's releases.
Rename to portion
1.10.0-post1, rename library to
portion
.
Changelog
Sourced from python-intervals's changelog.
Changelog
2.0.2 (2020-05-09)
Fixed
- Fix occasional
StopIteration
exception when checking for containment (#28).2.0.1 (2020-03-15)
Fixed
- Fix invalid representations of non-atomic intervals composed of a singleton (#22).
2.0.0 (2020-03-06)
Added
i.empty
to check for interval emptiness.i.atomic
to check for interval atomicity.- An
adjacent
method to test whether two intervals are adjacent.i.__getitem__
supports slices.- Infinities define a hash value.
- Static method
Interval.from_atomic(left, lower, upper, right)
to create an interval composed of a single atomic interval (replacesAtomicInterval(left, lower, upper, right)
).Changed
- (breaking)
python-intervals
has been renamedportion
.- (breaking) Many (optional) parameters are converted to keyword-only arguments:
- for
from_string
andto_string
:bound
,disj
,sep
,left_open
,left_closed
,right_open
,right_closed
,pinf
andninf
;- for
from_data
andto_data
:pinf
andninf
;- for
iterate
:base
andreverse
;- for
Interval.replace
:ignore_inf
.- (breaking)
incr
is replaced bystep
initerate
.- (breaking) For consistency with
range
, thestep
parameter initerate
is always added even ifreverse=True
.- (breaking)
i.enclosure
is a property and no longer a method.- (breaking) Indexing or iterating on the atomic intervals of an
Interval
returnsInterval
instances instead ofAtomicInterval
ones.- (breaking) An interval is hashable if and only if its bounds are hashable.
- Huge performance increase for creation, union, intersection, complement and difference of intervals (#21).
CLOSED
andOPEN
are members of theBound
enumeration.- Large refactoring to encapsulate
AtomicInterval
and all its operations inInterval
.- Restructure package in modules instead of a flat file.
- Reorganise tests in modules and classes instead of a flat file.
- Reorganise changelog with explicit categories.
Removed
... (truncated)
- (breaking) Drop support for Python 2.7 and 3.4 since they reached end-of-life.
- (breaking)
AtomicInterval
is anamedtuple
and is no longer part of the public API.- (breaking) Remove
i.to_atomic()
(usei.enclosure
instead).- (breaking) Remove
i.is_empty()
(usei.empty
instead).
Commits
-
9b729c5
Prepare 1.10.0.post1 - See full diff in compare view