Question regarding the local function object
Gregory Ewing
greg.ewing at canterbury.ac.nz
Sat Mar 16 05:48:57 EDT 2019
Terry Reedy wrote:
> I believe
> that CPython function objects must currently all have the same size or
> at least the same max size and conclude that CPython currently allocates
> them from a block of memory that is some multiple of that size.
I wouldn't be surprised if there is a free list for function objects,
which would make it even more likely that you would observe this
kind of re-use.
--
Greg
More information about the Python-list
mailing list