Is "PyIntBlocks are never returned to the system before shutdown" right?

Terry Reedy tjreedy at udel.edu
Thu Apr 26 12:50:59 EDT 2012


On 4/26/2012 10:21 AM, ZHONG Chen wrote:
> "PyIntBlocks are never returned to the system before shutdown"
> I saw this comment in Python 2.6.8's source code: Objects/intobject.c
> line 25
>
> But in the function PyInt_ClearFreeList()
> It will call PyMem_FREE(list) for empty int block.
>
> Why?

Before proceeding, I would check the current 2.7.3 code.
It is possible that the comment is obsolete.
You might be a better idea if you clone the hg repository and check the 
history for when those two lines were last modified.

-- 
Terry Jan Reedy




More information about the Python-list mailing list