zpoint/CPython-Internals
zpoint/CPython-Internals has 5,092 GitHub stars and 477 forks. GitHot measured +1 in 7 days. Last checked 2026-11-09 12:42 UTC. Last push 2026-02-03.
So werden diese Zahlen gemessen
Dive into CPython internals, trying to illustrate every detail of CPython implementation
Gemessener Sternzuwachs
- in 24h
- Aktualisierung verzögert
- in 7 days
- +1
- in 15 days
- Aktualisierung verzögert
- in 1 month
- Aktualisierung verzögert
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalCpython Internals
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
- dict
- long/int
- unicode/str
- set
- list(timsort)
- tuple
- bytes
- bytearray(buffer protocol)
- float
- func(user-defined method)
- method(builtin method)
- iter
- gen(generator/coroutine/async generator)
- class(bound method/classmethod/staticmethod)
- complex
- enum
- type(mro/metaclass/creation of class/instance)
Modules
Lib
- re(regex)
- asyncio
Interpreter
- gil(Global Interpreter Lock)
- gc(Garbage Collection)
- memory management
- descr(how does attribute access work/
__get__/__getattribute__/__getattr__) - exception(exception handling)
- module(how does import work)
- frame
- code
- slots/
__slots__(how does attribute initialized in the creation of class/instance) - thread
- PyObject(overview)
Extension
- C API(profile python code and write pure C extension)
- Cython(C extension)
- Boost C++ libaries (C++ extension)
- C++ extension
- integrate with NumPy
- bypass the GIL
Grammar
Learning material
I only recommend materials I've read
- CPython internals - Interpreter and source code overview(youtube video)
- < < Inside The Python Virtual Machine > >
- < < Python源码剖析 > >
- rushter(blog/eng)
- YET ANOTHER PYTHON INTERNALS BLOG(blog/eng)
- Junnplus(blog/cn)
- manjusaka(blog/cn)
- aoik-Python's compiler series(blog/eng)
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
Ähnliche Projekte entdecken
codecrafters-io/build-your-own-x
Meistere das Programmieren, indem du deine Lieblingstechnologien von Grund auf neu erschaffst.
561,597 Sternepublic-apis/public-apis
Eine gemeinschaftliche Liste kostenloser APIs
497,924 Sternemorluto/rea
Mit Agenten alles per Reverse Engineering untersuchen, vom Verhalten der Anwendung bis hin zu nativen Binärdateien.
449,772 Sterneopenclaw/openclaw
Die KI, die wirklich Dinge erledigt. Jedes Betriebssystem, jede Plattform. Auf die Hummer-Art. 🦞
394,299 Sterne