《CPython Internals》学习第 20 天,p360-p377 总结,总计 18 页。一、技术总结1.seaborn可视化工具。2.dtrace(1)安装 {代码...} (2)编译 {代码...} 3.snake...
zpoint/CPython-Internals Star4.3k Code Issues Pull requests Discussions Dive into CPython internals, trying to illustrate every detail of CPython implementation pythoncinterpreterpython3cpythonlearning-materialcpython-internals UpdatedJul 8, 2024
cpython# ./configure configure 文件是 shell 脚本。执行 configure 脚本的作用是让 autoconf 在系统中搜索 CPython 需要的库,并将它们的路径复制到Makefile 文件中。执行 ./configure 命令会在 cpython 目录下生成一个 Makefile 文件。 编译 make -j$(nproc) -j:job的缩写,$(nproc):指定电脑的核数作为 jo...
(3)配置 .gdbinit 文件 add-auto-load-safe-path /project/cpython 注:1./project/cpython 为 cpython 所在的目录。 (4)设置断点 使用b : 命令,示例: (gdb) b Objects/floatobject.c:532 GDB的使用可以参考书籍《Debugging with GDB》或者在线手册。 二、英语总结(生词:2) 无。 关于英语的注解同步更新...
关于Python 解释器的书不多——Anthony Shaw写的《CPython Internals》,陈儒写的《Python源码剖析》。 因为《CPython Internals》在2021年出版,使用的是Python3,比较新。而《Python源码剖析》在 2008 年出版,使用的是Python 2.5,比较古早。所以先阅读《CPython Internals》。
《CPython Internals》学习第 8 天,p118-p150 总结,总计 33 页。 一、技术总结 补充一些本人整理的关于 Context-Free Grammar(CFG) 的知识。 1.symbol(符号) A mathematical symbol is a figure or a combination of figures that is used to represent a mathematical object(符号是一个数字或数字的组合,用来...
bytecode 是 Python 解释器执行 Python 源代码所使用的机器语言。 它由一系列的操作码(opcode)组成,每个操作码表示一个特定的操作。 操作码 opcode opcode 是 bytecode 的基本单元。它由一个字节表示。 opcode 值为键值对,键为操作的名称,值为操作数。 opcode 的类型 指令操作码:表示执行一条指令,例如加法、减法...
《CPython Internals》学习第 12天,p221-p231 总结,总计 11 页。 一、技术总结 无。 二、英语总结(生词:2) 1.at a time idiom. separately(单独地) in the specified groups(一次)。示例: (1) I can only do one thing at a tim(我一次只能做一件事)。
Cpython Internals 简体中文 한국어 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 ab54b9a130c88...
《CPython Internals》学习第 6 天,p96-p96 总结,总计 1 页。 一、技术总结 1.parser-tokenizer p92, Creating a concrete syntax tree using a parser-tokenizer, or lexer. p96, CPython has a parser-tokenizer module, written in C. 当做这在 92 页提到 parser-tokenizer 的时候我没在意,也不知道这...