Skip to content

IntervalDict views and fixes

Choose a tag to compare

@AlexandreDecan AlexandreDecan released this 09 Aug 08:52
· 191 commits to master since this release

Added

  • IntervalDict.as_dict() to export its content to a classical Python dict.

Changed

  • IntervalDict.keys(), values() and items() return view objects instead of lists.

Fixed

  • IntervalDict.popitem() now returns a (key, value) pair instead of an IntervalDict.
  • The documentation of IntervalDict.pop() now correctly states that the value (and not the key)
    is returned.