Giter VIP home page Giter VIP logo

cpython-internals-lecture-notes's Introduction

十小时学习 CPython 3.6 内部实现


Python 的官方实现版本 CPython 是 C 语言实现的,对于想要深入学习 Python 实现过程的人来说(比如说我),缺少时效性强的指导手册。有一本 08 年出版的《Python 源码剖析》,算是影响力最大的一本了,但是也已经比较久远了。而且现在 Python 已经发布到 3.6.2 版本了,与 Python 2.x 在很多地方已经存在相当大的差异。

除此之外,网上还有一份公开课,是 Python Tutor - Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code execution 的作者 Philip Guo 2014 年所授课程 CSC 253 中的一部分:CPython internals: A ten-hour codewalk through the Python interpreter source code。本课程以 CPython 2.7.8 为例,共分为九节课,深入浅出地介绍了 CPython 的内部实现机制。根据本课程,前后花了大概十个小时的时间,我试着探索、学习了 CPython 3.6.1 的源码。我将每节课学习、探索的笔记整合起来,制作了这一本《CPython Internals 学习笔记》,开源分享至 GitHub - rainyear/CPython-Internals-Lecture-Notes: CPython Internals 学习笔记

需要注意的是,并不是说你看完了这门课程就可以大刀阔斧地自己修改 CPython 的源码并重新编译一下用到生产环境中,如果你真的有改进 Python 的好想法,应该提出新的 PEP 并提交 Commit。

欢迎分享、转载本书,但请务必保留对本项目的引用(GitHub - rainyear/CPython-Internals-Lecture-Notes: CPython Internals 学习笔记),且不得用于任何商业用途。如有任何疑问、意见,欢迎提交 Issue 或发送邮件联系我!

cpython-internals-lecture-notes's People

Contributors

rainyear avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.