> 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.

getset.c is for ``@property``-like attributes. ``__sizeof__`` needs to be a method proper. Otherwise you'll get a ``TypeError: 'int' object is not callable``. Just tested to confirm this.