[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.

Robert Schuppenies report at bugs.python.org
Fri Jun 27 14:22:10 CEST 2008


Robert Schuppenies <okkotonushi at googlemail.com> added the comment:

Okay, I get the point. With including unicode.defenc I already
included a referenced object which was ruled out in the first
place. And this for a good reason.

What bugs me, though, is that this leaves out a potentially
significant amount of memory. I know that this is already the case
for shared objects (e.g. the above mentioned numbers) or malloc
overhead, but adding yet another exception bothers me.
On the other hand, since it's hidden behind the C API, I don't know
how to address this problem. Maybe just give it some text in the
documentation is sufficient.

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


More information about the Python-bugs-list mailing list