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 <1559395791.17.0.23293030009.issue36839@roundup.psfhosted.org>
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: <1559395791.17.0.23293030009.issue36839@roundup.psfhosted.org>
2019-06-01 13:29:51serhiy.storchakalinkissue36839 messages
2019-06-01 13:29:51serhiy.storchakacreate