zpoint/CPython-Internals

Dive into CPython internals, trying to illustrate every detail of CPython implementation

C

5,084

412 commits

updated Feb 3, 2026

See the code

README

Cpython Internals

cpython logo

This repository contains my notes/blog for cpython source code

It attempts to illustrate every detail of CPython implementation

# based on version 3.8.0a0
cd cpython
git reset --hard ab54b9a130c88f708077c2ef6c4963b632c132b3

The following content is suitable for those who have Python programming experience and are interested in the internals of the Python interpreter. For those who need beginner or advanced material, please refer to awesome-python-books

Table of Contents

Objects

Modules

Lib

Interpreter

Extension

Grammar

Learning material

I only recommend materials I've read

Contribution

All kinds of contributions are welcome

  • submit a pull request
    • if you want to share any knowledge you know
    • post a new article
    • correct any technical mistakes
    • correct English grammar
    • translation
    • anything else
  • open an issue
    • any suggestions
    • any questions
    • correct mistakes
    • anything else

License

c
cpython
cpython-internals
interpreter
learning-material
python
python3

zpoint/CPython-Internals

Dive into CPython internals, trying to illustrate every detail of CPython implementation

C

5,084

412 commits

updated Feb 3, 2026

See the code

README

Cpython Internals

cpython logo

This repository contains my notes/blog for cpython source code

It attempts to illustrate every detail of CPython implementation

# based on version 3.8.0a0
cd cpython
git reset --hard ab54b9a130c88f708077c2ef6c4963b632c132b3

The following content is suitable for those who have Python programming experience and are interested in the internals of the Python interpreter. For those who need beginner or advanced material, please refer to awesome-python-books

Table of Contents

Objects

Modules

Lib

Interpreter

Extension

Grammar

Learning material

I only recommend materials I've read

Contribution

All kinds of contributions are welcome

  • submit a pull request
    • if you want to share any knowledge you know
    • post a new article
    • correct any technical mistakes
    • correct English grammar
    • translation
    • anything else
  • open an issue
    • any suggestions
    • any questions
    • correct mistakes
    • anything else

License

c
cpython
cpython-internals
interpreter
learning-material
python
python3

Significant stargazers

(top 24 of 56)

Tony Narlock

421 followers · starred Jan 2026

Fangjun Kuang

759 followers · starred Mar 2025

Marcelo Trylesinski

3,317 followers · starred Dec 2021

Agriya Khetarpal

163 followers · starred Aug 2024