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 josh.r
Recipients Mark.Shannon, corona10, josh.r, methane
Date 2021-10-08.19:09:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1633720160.57.0.000390946026441.issue45340@roundup.psfhosted.org>
In-reply-to
Content
Hmm... And there's one other issue (that wouldn't affect people until they actually start worrying about memory overhead). Right now, if you want to determine the overhead of an instance, the options are:

1. Has __dict__: sys.getsizeof(obj) + sys.getsizeof(obj.__dict__)
2. Lacks __dict__ (built-ins, slotted classes): sys.getsizeof(obj)

This change would mean even checking if something using this setup has a __dict__ creates one. Without additional introspection support, there's no way to tell the real memory usage of the instance without changing the memory usage (for the worse).
History
Date User Action Args
2021-10-08 19:09:20josh.rsetrecipients: + josh.r, methane, Mark.Shannon, corona10
2021-10-08 19:09:20josh.rsetmessageid: <1633720160.57.0.000390946026441.issue45340@roundup.psfhosted.org>
2021-10-08 19:09:20josh.rlinkissue45340 messages
2021-10-08 19:09:20josh.rcreate