As Christian Heimes describes it here, Python uses its own memory allocator for small objects (< 257 bytes). Larger objects are allocated directly with malloc, smaller objects end up in arenas. The code is well documented in obmalloc.c.

Related information:

FreeMemory (last edited 2010-11-27 04:19:23 by adsl-074-166-103-084)

Unable to edit the page? See the FrontPage for instructions.