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 brett.cannon, dino.viehland, eric.snow, methane, serhiy.storchaka
Date 2019-06-01.13:29:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
The size of the code object is at least 144 bytes.

>>> def f(): pass
... 
>>> sys.getsizeof(f.__code__)
144

If the function uses parameters, variables or constants (and you cannot do much useful without using them), their size should be added too. It overwhelms the size of the raw bytecode.
History
Date User Action Args
2019-06-01 13:29:51serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, dino.viehland, methane, eric.snow
2019-06-01 13:29:51serhiy.storchakasetmessageid: <[email protected]>
2019-06-01 13:29:51serhiy.storchakalinkissue36839 messages
2019-06-01 13:29:51serhiy.storchakacreate