Probably better to put this in `numpy/core/src/multiarray/getset.c` where the `nbytes` method is. I'm assuming `__sizeof__` should not be writable.