《CPython Internals》学习第 20 天,p360-p377 总结,总计 18 页。一、技术总结1.seaborn可视化工具。2.dtrace(1)安装 {代码...} (2)编译 {代码...} 3.snake...
《CPython Internals》阅读笔记:p43-p60 《CPython Internals》学习第 3 天,p43-p60 总结,总计 18 页。 一、技术总结 1.编译所需要的package sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev \libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev \libdb5.3-dev libbz2...
2.假设有一组数1, 2, 3, 4, 5, 6, 8, 9,那么 median 是(4+5)/2=4.5。 A benchmark will produce an average/median runtime of a fixed code snippet so that you can compare multiple versions of Python runtime(《CPython Internals》第353页。) 关于英语的注解同步更新汇总到 https://github...
这本书以 CPython 3.9 为例,讲解了编译基本操作(configure, make),内存管理(引用技术、垃圾回收), 并行和并发,基本数据类型(builtin types, dict),测试(unitest),调试(debug), 基准测试(timeit,pyperformance),性能分析(cProfile)。 从2025年1月6日至2025年1月26日,期间花了20天阅读完《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(符号是一个数字或数字的组合,用来...
对AST 进行代码生成,生成字节码。 将字节码存储在 pycache 目录下的 .pyc 文件中。 加载.pyc 文件,并由 Python 虚拟机执行字节码。 字节码 bytecode bytecode 是 Python 解释器执行 Python 源代码所使用的机器语言。 它由一系列的操作码(opcode)组成,每个操作码表示一个特定的操作。 操作码 opcode opcode 是 ...
《CPython Internals》学习第 2 天,p20-p42 总结,总计 23 页。 一、技术总结 1.Python interpreter CPython,PyPython,Jypython,Cython。 2.阅读 cpython 代码工具 VSCode 或者 CLion。VSCode 配置讲得挺清晰,但是 CLion 的配置讲得很混乱,本人看完后感觉很懵,也没配置好,先跳过吧,回头再看。
pythoncpythoncpython-internals UpdatedAug 25, 2021 Python Add a description, image, and links to thecpython-internalstopic page so that developers can more easily learn about it. Curate this topic To associate your repository with thecpython-internalstopic, visit your repo's landing page and se...
《CPython Internals》阅读笔记:p43-p60 《CPython Internals》学习第 3 天,p43-p60 总结,总计 18 页。 一、技术总结 1.编译所需要的package sudo aptinstall-ybuild-essentiallibssl-dev zlib1g-dev libncurses5-dev \ libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev \...
《CPython Internals》阅读笔记:p43-p60 《CPython Internals》学习第 3 天,p43-p60 总结,总计 18 页。 一、技术总结 1.编译所需要的package sudo apt install -y build-essential libssl-dev zlib1g-dev libncurses5-dev \ libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev \...