3 ms·
This series of blog posts is also great: https://tech.blog.aknin.name/tag/internals/ https://tech.blog.aknin.name/tag/internals/ I spent a lot of time reading
by int_19h 10y ago
This series of blog posts is also great:
https://tech.blog.aknin.name/tag/internals/ https://tech.blog.aknin.name/tag/internals/
I spent a lot of time reading it while working on the mixed-mode Python debugger for Visual Studio (which, coincidentally, supports both Python 2 and Python 3 - they do really share a lot of things). Much of that work involved parsing and writing internal Python data structures directly, since Python interpreter may be unusable when the current instruction pointer is inside native code (GIL not held, various system locks held etc).