v0.4.6
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 fromPyTupleObject
for increased accuracy
Full Changelog: v0.4.5...v0.4.6