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 rhettinger
Recipients rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-10-22.23:15:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477178116.18.0.0731769927197.issue28508@psf.upfronthosting.co.za>
In-reply-to
Content
>>> from sys import getsizeof
>>> class A:
	def __init__(self, a, b, c, d, e, f):
		self.a = a
		self.b = b
		self.c = c
		self.d = d
		self.e = e
		self.f = f
		
>>> a = A(10, 20, 30, 40, 50, 60)
>>> b = A(10, 20, 30, 40, 50, 60)
>>> c = A(10, 20, 30, 40, 50, 60)
>>> d = A(10, 20, 30, 40, 50, 60)
>>> [getsizeof(vars(inst)) for inst in [a, b, c, d]]
[152, 152, 152, 152]
>>> [getsizeof(dict(vars(inst))) for inst in [a, b, c, d]]
[368, 368, 368, 368]
History
Date User Action Args
2016-10-22 23:15:16rhettingersetrecipients: + rhettinger, serhiy.storchaka, xiang.zhang
2016-10-22 23:15:16rhettingersetmessageid: <1477178116.18.0.0731769927197.issue28508@psf.upfronthosting.co.za>
2016-10-22 23:15:16rhettingerlinkissue28508 messages
2016-10-22 23:15:16rhettingercreate