[issue3048] getsizeof incorrect for Unicode strings

Martin v. Löwis report at bugs.python.org
Fri Jun 6 09:47:13 CEST 2008


New submission from Martin v. Löwis <martin at v.loewis.de>:

sys.getsizeof doesn't take the actual length of the Unicode string into
account:

py> sys.getsizeof(u"")
32
[31332 refs]
py> sys.getsizeof(u"1"*100)
32
[31332 refs]

----------
assignee: schuppenies
messages: 67750
nosy: loewis, schuppenies
severity: normal
status: open
title: getsizeof incorrect for Unicode strings

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


More information about the Python-bugs-list mailing list