[docs] [issue15436] __sizeof__ is not documented

Raymond Hettinger report at bugs.python.org
Thu Jul 26 01:03:08 CEST 2012


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

This may be CPython specific.

Also, sys.getsizeof() hasn't proved to be very useful (I never see anyone use it or see it in production code).  Worse, it doesn't even make sense in the case of shared-key dictionaries and whatnot.  Accordingly, there is little reason to make this more public than it already is.  I would be happy to see it written-off as an implementation detail.

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15436>
_______________________________________


More information about the docs mailing list