implement __sizeof__ for tinyarray
A new method `object_size` is added to the Array template class, which calculates the total size of the Python object in bytes. The function `size_of` then wraps this method and provides the necessary interface for a Python method object.
Please register or sign in to comment