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 mark.dickinson
Recipients Somelauw, benjamin.peterson, jyasskin, mark.dickinson, rhettinger
Date 2009-01-20.17:57:23
SpamBayes Score 1.1091109e-07
Marked as misclassified No
Message-id <1232474244.64.0.663730845394.issue4998@psf.upfronthosting.co.za>
In-reply-to
Content
> ~44 bytes per Decimal on average with __slots__
> ~183 bytes per Decimal on average without __slots__

...and of course a difference of 140 bytes shouldn't really be
much of a surprise:

Python 3.1a0 (py3k:68809M, Jan 20 2009, 16:55:13) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getsizeof(dict())
140
History
Date User Action Args
2009-01-20 17:57:24mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, jyasskin, benjamin.peterson, Somelauw
2009-01-20 17:57:24mark.dickinsonsetmessageid: <1232474244.64.0.663730845394.issue4998@psf.upfronthosting.co.za>
2009-01-20 17:57:23mark.dickinsonlinkissue4998 messages
2009-01-20 17:57:23mark.dickinsoncreate