[issue9865] OrderedDict doesn't implement __sizeof__

Alexander Belopolsky report at bugs.python.org
Wed Sep 15 23:37:18 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

> How do you want to "handle this in general"?

Possibly by adding up __sizeof__'s of base and __dict__ in a generated function?  With a special handling of slots ...

May prove to be too complicated to be worth the effort.

----------

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


More information about the Python-bugs-list mailing list