[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6566":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},6566,"CPython-Internals","zpoint\u002FCPython-Internals","zpoint","Dive into CPython internals, trying to illustrate every detail of CPython implementation","",null,"C",5047,474,336,1,0,5,21,3,39.03,false,"master",true,[25,26,27,28,29,30,31],"c","cpython","cpython-internals","interpreter","learning-material","python","python3","2026-06-12 02:01:26","# Cpython Internals\n\n![cpython logo](Media\u002FPython-logo-notext.svg)\n\n* [简体中文](README_CN.md)\n* [한국어](README_KR.md)\n*  **Watch** this repo if you need to be notified when there's an update\n\nThis repository contains my notes\u002Fblog for [cpython](https:\u002F\u002Fgithub.com\u002Fpython\u002Fcpython) source code\n\nIt attempts to illustrate every detail of CPython implementation\n\n```shell script\n# based on version 3.8.0a0\ncd cpython\ngit reset --hard ab54b9a130c88f708077c2ef6c4963b632c132b3\n```\n\nThe 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](https:\u002F\u002Fgithub.com\u002FJunnplus\u002Fawesome-python-books)\n\n# Table of Contents\n\n* [Objects](#Objects)\n* [Modules](#Modules)\n* [Lib](#Lib)\n* [Interpreter](#Interpreter)\n* [Extension](#Extension)\n* [Learning material](#Learning-material)\n* [Contribution](#Contribution)\n* [License](#License)\n\n\n# Objects\n - [x] [dict](BasicObject\u002Fdict\u002Fdict.md)\n - [x] [long\u002Fint](BasicObject\u002Flong\u002Flong.md)\n - [x] [unicode\u002Fstr](BasicObject\u002Fstr\u002Fstr.md)\n - [x] [set](BasicObject\u002Fset\u002Fset.md)\n - [x] [list(timsort)](BasicObject\u002Flist\u002Flist.md)\n - [x] [tuple](BasicObject\u002Ftuple\u002Ftuple.md)\n - [x] [bytes](BasicObject\u002Fbytes\u002Fbytes.md)\n - [x] [bytearray(buffer protocol)](BasicObject\u002Fbytearray\u002Fbytearray.md)\n - [x] [float](BasicObject\u002Ffloat\u002Ffloat.md)\n - [x] [func(user-defined method)](BasicObject\u002Ffunc\u002Ffunc.md)\n - [x] [method(builtin method)](BasicObject\u002Fmethod\u002Fmethod.md)\n - [x] [iter](BasicObject\u002Fiter\u002Fiter.md)\n - [x] [gen(generator\u002Fcoroutine\u002Fasync generator)](BasicObject\u002Fgen\u002Fgen.md)\n - [x] [class(bound method\u002Fclassmethod\u002Fstaticmethod)](BasicObject\u002Fclass\u002Fclass.md)\n - [x] [complex](BasicObject\u002Fcomplex\u002Fcomplex.md)\n - [x] [enum](BasicObject\u002Fenum\u002Fenum.md)\n - [x] [type(mro\u002Fmetaclass\u002Fcreation of class\u002Finstance)](BasicObject\u002Ftype\u002Ftype.md)\n\n# Modules\n\n - [ ] io\n \t- [x] [fileio](Modules\u002Fio\u002Ffileio\u002Ffileio.md)\n - [x] [pickle](Modules\u002Fpickle\u002Fpickle.md)\n\n# Lib\n\n - [x] [re(regex)](Modules\u002Fre\u002Fre.md)\n - [ ] asyncio\n\n# Interpreter\n\n - [x] [gil(Global Interpreter Lock)](Interpreter\u002Fgil\u002Fgil.md)\n - [x] [gc(Garbage Collection)](Interpreter\u002Fgc\u002Fgc.md)\n - [x] [memory management](Interpreter\u002Fmemory_management\u002Fmemory_management.md)\n - [x] [descr(how does attribute access work\u002F`__get__`\u002F`__getattribute__`\u002F`__getattr__`)](Interpreter\u002Fdescr\u002Fdescr.md)\n - [x] [exception(exception handling)](Interpreter\u002Fexception\u002Fexception.md)\n - [x] [module(how does import work)](Interpreter\u002Fmodule\u002Fmodule.md)\n - [x] [frame](Interpreter\u002Fframe\u002Fframe.md)\n - [x] [code](Interpreter\u002Fcode\u002Fcode.md)\n - [x] [slots\u002F`__slots__`(how does attribute initialized in the creation of class\u002Finstance)](Interpreter\u002Fslot\u002Fslot.md)\n - [x] [thread](Interpreter\u002Fthread\u002Fthread.md)\n - [x] [PyObject(overview)](Interpreter\u002Fpyobject\u002Fpyobject.md)\n\n# Extension\n\n - [x] [C API(profile python code and write pure C extension)](Extension\u002FC\u002Fc.md)\n - [ ] Cython(C extension)\n - [x] [Boost C++ libaries (C\\+\\+ extension)](https:\u002F\u002Fgithub.com\u002Fzpoint\u002FBoost-Python-Examples)\n - [ ] [C++ extension](Extension\u002FCPP\u002Fcpp.md)\n \t- [x] integrate with NumPy\n \t- [x] bypass the GIL\n\n# Grammar\n\n - [x] [Compile Phase](Interpreter\u002Fcompile\u002Fcompile.md)\n    - [x] [Grammar\u002FMetaGrammar to DFA](Interpreter\u002Fcompile\u002Fcompile.md)\n    - [x] [CST to AST](Interpreter\u002Fcompile2\u002Fcompile.md)\n    - [x] [AST to python byte code](Interpreter\u002Fcompile3\u002Fcompile.md)\n\n\n# Learning material\n\nI only recommend materials I've read\n\n* [CPython internals - Interpreter and source code overview(youtube video)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=LhadeL7_EIU&list=PLzV58Zm8FuBL6OAv1Yu6AwXZrnsFbbR0S)\n* [\u003C \u003C Inside The Python Virtual Machine > >](https:\u002F\u002Fleanpub.com\u002Finsidethepythonvirtualmachine)\n* [\u003C \u003C Python源码剖析 > >](https:\u002F\u002Fbook.douban.com\u002Fsubject\u002F3117898\u002F)\n* [rushter(blog\u002Feng)](https:\u002F\u002Frushter.com\u002F)\n* [YET ANOTHER PYTHON INTERNALS BLOG(blog\u002Feng)](https:\u002F\u002Fpythoninternal.wordpress.com\u002F)\n* [Junnplus(blog\u002Fcn)](https:\u002F\u002Fgithub.com\u002FJunnplus\u002Fblog\u002Fissues)\n* [manjusaka(blog\u002Fcn)](https:\u002F\u002Fmanjusaka.itscoder.com\u002F)\n* [aoik-Python's compiler series(blog\u002Feng)](https:\u002F\u002Faoik.me\u002Fblog\u002Fposts\u002Fpython-compiler-from-grammar-to-dfa)\n\n# Contribution\n\nAll kinds of contributions are welcome\n\n* submit a pull request\n  *  if you want to share any knowledge you know\n  * post a new article\n  * correct any technical mistakes\n  * correct English grammar\n  * translation\n  * anything else\n* open an issue\n  * any suggestions\n  * any questions\n  * correct mistakes\n  * anything else\n\n# [License](https:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby-nc-sa\u002F4.0\u002F)\n","该项目深入解析了CPython的内部实现，旨在详尽展示CPython的每一个细节。核心功能包括对Python对象、模块、库以及解释器等组件的工作原理进行详细的说明与分析，特别强调了如字典、列表、字符串等基本数据结构的内部机制，同时也涵盖了垃圾回收、全局解释器锁（GIL）等高级主题。技术上基于C语言编写，并且提供了大量代码实例来帮助理解。非常适合已经具备一定Python编程基础并对Python底层工作方式感兴趣的开发者学习使用，对于想要深入了解Python执行效率优化或开发C扩展的人来说尤为宝贵。",2,"2026-06-11 03:07:38","top_language"]