29 Jul
2012
29 Jul
'12
12:31 p.m.
Martin v. Löwis added the comment:
I think there is one difference between __len__ and __sizeof__. __sizeof__ should be overloaded only for C-implemented classes. IMHO, it is a part of C API.
That is a reasonable point. So documenting it along with the type slots
might be best.
----------
_______________________________________
Python tracker