Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[names] `__builtin__` is the Python 2 module name; IPython's `run` should be `%run`

未关闭 适合新手
#634 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
90/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
jupyter-notebook, python

调研方向

要编辑的文件是 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QuantEcon/lecture-python-programming 的其他 Issue

查看 QuantEcon/lecture-python-programming 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。