简体   繁体   中英

Why is the heap memory in python called private?

As the title says, why is the heap memory called private heap in Python?

PS: I've already searched enough over the Inte.net, but did not find anything that explains specifically on why is it called private?

To paraphrase the memory management docs :

Memory management in Python involves a private heap containing all Python objects and data structures. The management of this private heap is ensured internally by the Python memory manager. [...] It is important to understand that the management of the Python heap is performed by the interpreter itself and that the user has no control over it [...]

In other words, it is private to the interpreter and managed by the interpreter.

In a broader sense, it's also private to the process running the interpreter, and not eg shared memory, but that's somewhat beyond the point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM