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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2016-10-22.18:06:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477159617.07.0.164179251875.issue28508@psf.upfronthosting.co.za>
In-reply-to
Content
>>> class C:
...     def __init__(self):
...         for i in range(682):
...             setattr(self, 'a%d'%i, None)
... 
>>> sys.getsizeof(C().__dict__) / len(C().__dict__)
4.058651026392962
History
Date User Action Args
2016-10-22 18:06:57serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2016-10-22 18:06:57serhiy.storchakasetmessageid: <1477159617.07.0.164179251875.issue28508@psf.upfronthosting.co.za>
2016-10-22 18:06:57serhiy.storchakalinkissue28508 messages
2016-10-22 18:06:56serhiy.storchakacreate