- 简体中文
- Watch this repo if you need to be notified when there's update
This repository is my notes/blog for cpython source code
Trying to illustrate every detail of cpython implementation
# based on version 3.8.0a0
cd cpython
git reset --hard ab54b9a130c88f708077c2ef6c4963b632c132b3
The following contents are suitable for those who have python programming experience and interested in internal of python interpreter, for those who needs beginner or advanced material please refer to awesome-python-books
- dict
- long/int
- unicode/str
- set
- list
- 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)
- io
- re(regex)
- asyncio
- 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
- slot/
__slots__
- thread
- PyObject(overview)
- C API(profile python code and write pure C extension)
- Cython(C extension)
- Boost C++ libaries (C++ extension)
I will come back to this part when I finish reading < < Compilers > > and < < SICP > > and have a better understanding of this kind of stuffs
In the meantime, my routine work will have a higher priority, so you may need months to see updates in this part
I will only recommend what I've read