On Thursday I presented a talk about how CPython manages memory at the Melbourne Python Users Group.

After introducing the notion of a variable in Python and how they are stored in PyObjects I talked about the overall memory layout of CPython:

CPython memory layout diagram

If you want more details the talk slides can be found here: https://github.com/CustomProgrammingSolutions/python-memory-management-talk

There's a number of detailed notes in the slides with references so check out the presenter mode (by pressing p) to see those notes.

We would like to extend our thanks to Python Charmers for hosting the event!