Skip to content

v0.4.6

Compare
Choose a tag to compare
@ionite34 ionite34 released this 17 Jan 06:44
· 391 commits to main since this release
7159eee

Added MutableSequence protocols for TupleView:

  • __getitem__ (index / slice)
  • __setitem__ (index / slice)
  • __delitem__ (index / slice)
  • __iadd__
  • append
  • clear
  • extend
  • insert
  • pop
  • remove
  • reverse

These new methods will not require an unsafe context normally as they check the allocated memory bounds before any resize operation. If resizing will be beyond allocated memory for the tuple, an UnsafeError is raised.

An unsafe context can be entered to bypass this allocated memory check.

Fixes

  • Fixed DictView.__getitem__ missing PyObject cast
  • TupleView mem_size uses base implementation from PyTupleObject for increased accuracy

Full Changelog: v0.4.5...v0.4.6