This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis, schuppenies
Date 2008-06-06.07:47:11
SpamBayes Score 0.18572655
Marked as misclassified No
Message-id <1212738433.49.0.637321178838.issue3048@psf.upfronthosting.co.za>
In-reply-to
Content
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]
History
Date User Action Args
2008-06-06 07:47:14loewissetspambayes_score: 0.185727 -> 0.18572655
recipients: + loewis, schuppenies
2008-06-06 07:47:13loewissetspambayes_score: 0.185727 -> 0.185727
messageid: <1212738433.49.0.637321178838.issue3048@psf.upfronthosting.co.za>
2008-06-06 07:47:12loewislinkissue3048 messages
2008-06-06 07:47:12loewiscreate