You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.9 will be released on October 5th. Among the chances for this version, dict now supports | and |=, respectively for merge and update. See https://www.python.org/dev/peps/pep-0584/
Since IntervalDict aims to follow the interface of a traditional dict, we should implement them as well. |= will be easy to do, since we can simply delegate to IntervalDict.update.
For |, it is a bit more tricky, and the current plan would be to first copy the current instance, then update this copy and return it.
Since that's a quite easy issue to address, let's label it as "good first issue" ;)
The text was updated successfully, but these errors were encountered:
Python 3.9 will be released on October 5th. Among the chances for this version,
dict
now supports|
and|=
, respectively for merge and update. See https://www.python.org/dev/peps/pep-0584/Since
IntervalDict
aims to follow the interface of a traditionaldict
, we should implement them as well.|=
will be easy to do, since we can simply delegate toIntervalDict.update
.For
|
, it is a bit more tricky, and the current plan would be to first copy the current instance, then update this copy and return it.Since that's a quite easy issue to address, let's label it as "good first issue" ;)
The text was updated successfully, but these errors were encountered: