Antoine Pitrou <pit...@free.fr> added the comment:

sys.getsizeof() is not for production code, it's for experimenting and getting 
information at the command prompt. It's quite useful when you know its 
limitations.

I'd argue that implementing __sizeof__ for user types doesn't make much sense 
(except C extension types, which are CPython-specific).

----------
nosy: +pitrou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15436>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to