[names] `__builtin__` is the Python 2 module name; IPython's `run` should be `%run`
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 90/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- jupyter-notebook, python
- 领域
- content, documentation
调研方向
要编辑的文件是 lectures/names.md。查看第 336 行,将 __builtin__ 改为 builtins;查看第 229 行,将 run 改为 %run。通过检查这些行周围的上下文来验证更改。编辑后,可以通过查看 Markdown 来快速测试,确保修正已就位。
由索引模型根据 Issue 内容生成。
描述
Two small inaccuracies in lectures/names.md, found during native-editor review of the French edition (see QuantEcon/lecture-python-programming.fr#80, which corrected both in French). Checked at b0b0b56.
__builtin__ is the Python 2 module name. Line 336 says the built-in definitions "are stored in a module called __builtin__". Python 3.0 renamed that module builtins (What's New in Python 3.0), and import __builtin__ raises ModuleNotFoundError on current Python. Suggested: "These definitions are provided by the builtins module."
run vs %run. Line 229 says "When we run a script using IPython's run command", while the cells at lines 245 and 446 use the %run magic. Bare run only works because automagic is on by default (IPython magics); %run matches the code.
Why it is worth doing soon: until the English agrees, a translation sync that touches the adjacent bullet can revert the French builtins correction (it did in 3 of 3 simulations against the current engine). The Chinese and Persian editions carry both as written.
- 主要语言
- JavaScript
- 星标
- 72
- 派生
- 31
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 5
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantEcon/lecture-python-programming 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 95/100
-
难度 1/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
QuantEcon/lecture-python-programming#607 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 4/5 3-5 天 新手友好度 38/100
QuantEcon/lecture-python-programming#622 · 4 条评论 ·
查看 QuantEcon/lecture-python-programming 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
难度 2/5 1-3 小时 新手友好度 65/100
web-platform-tests/interop#1455 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
corsairdev/corsair#1764 ·
-
难度 2/5 1-3 小时 新手友好度 75/100