• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CPython Internals 学习笔记

十小时学习 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 或发送邮件联系我!

More Repositories

1

javascript-in-one-pic

Learn javascript in one picture.
6,697
star
2

python3-in-one-pic

Learn python3 in one picture.
Jupyter Notebook
4,968
star
3

pytips

Useful Python tips!
Jupyter Notebook
550
star
4

ImageColorTheme

Extract Color Themes from Images
Python
322
star
5

lolita

Using github's issue system as lightweight notes & blog.
Jupyter Notebook
159
star
6

cix-extractor-py

基于行块分布函数的通用网页正文(及图片)抽取 - Python版本
Python
115
star
7

react-jwt-example

Using JSON Web Token in React App.
JavaScript
73
star
8

dailybot

Daily Bot - Parse RSS and ChatGPT it.
Python
45
star
9

Dobby

Test your RESTful API more RESTfully
JavaScript
31
star
10

MathModeBot

Telegram Bot MathMode with Flask
Python
14
star
11

init-react-reflux-workflow

Clone and Gulp, start writing your React App.
JavaScript
13
star
12

DataX

Crawling, Cleaning, Analysing, Visualization and Inferencing
Jupyter Notebook
12
star
13

Oxford-Machine-Learning-Course-2015

Oxford Machine Learning Course 2015
Jupyter Notebook
11
star
14

tornado-mvc

Tornado x MVC
Python
9
star
15

rainyear.github.io

blog.
JavaScript
9
star
16

emoji-query

Query emoji string & unicode
JavaScript
6
star
17

data-blog

Data blog generated with Jupyter & MkDocs
Python
5
star
18

solar-rain

Solarized dark ghost theme
JavaScript
4
star
19

A-sketch-of-SICP

SICP in IPython Notebook with Scheme kernel.
3
star
20

nb

Jupyter Notebook Viewer
HTML
3
star
21

FlomoBar

JavaScript
3
star
22

xr_ux

Posts about AR/VR UX & Tech.
1
star
23

NexusHDThanker

NHD 说谢谢换魔力值
Python
1
star
24

lisp-koans-answers

My lisp-koans answers
Common Lisp
1
star
25

avgot

Python
1
star