作者简介

Anthony Shaw is an avid Pythonista and Fellow of the Python Software Foundation. Anthony has been programming since the age of 12 and found a love for Python while trapped inside a hotel in Seattle, Washington, 15 years later. After ditching the other languages he’d learned, Anthony has been researching, writing about, and creating courses for Python ever since. Anthony also contributes to small and large Open Source projects, including CPython, as well as being a member of the Apache Software Foundation. Anthony’s passion lies in understanding complex systems, then simplifying them, and teaching them to people.

内容简介

Unlock the Inner Workings of the Python Language, Compile the Python Interpreter From Source Code,And Participate in the Development of CPython.


Anthony Shaw is an avid Pythonista and Fellow of the Python Software Foundation. Anthony has been programming since the age of 12 and found a love for Python while trapped inside a hotel in Seattle, Washington, 15 years later. After ditching the other languages he’d learned, Anthony has been researching, writing about, and creating courses for Python ever since. Anthony also co...

下载地址

豆瓣评论

  • pluskid
    小众书,对 Python 的官方实现做了一个整体介绍,从词法、语法分析到编译器和字节码实现,代码解释执行以及多线程、异步执行等。内容很新(Py3.9),以实际代码为基础讲解,话题广泛,所以大部分地方都是点到为止。整体来说看过之后对以前只有模糊印象的东西有了稍微更深入的了解,比如 small object 的内存分配、多进程等并行执行的具体实现和机制等等,对想要去看 CPython 代码的人来说算是一个不错的整体索引。不过也有奇怪的地方,例如说 Python 的整数类型为了支持任意精度实际是存储的一个整数数组,例子里说比如 234 实际是存为 [2,3,4],不知道作者是打了一个很糟糕的比喻还是怎样,这个解释显然是不对的,如果这样的话又不禁让人疑问书里其他的地方是不是也有一些错漏和误解了。10-17
  • Icarus
    现实项目比自己写的玩具项目复杂太多了05-12
  • ggarlic
    倒是挺条理清晰的。比《Python源码剖析》好的地方是够新,用 py3.9 讲的。有些地方过于简略,用文字简要描述了下过程给个代码地址就过去了04-08
  • Hayes
    《CPython Internals》中文版本:https://hai-shi.gitbook.io/cpython-internals12-06
  • allenzhou
    一本对cpython构建与运行原理描写很翔实的书籍,扩展了不少编译原理,词法分析的知识12-14

猜你喜欢

大家都喜欢