Repository navigation
🌐 [translation-sync] [names] Use builtins and %run, as Python 3 and the code cells do - #144
Conversation
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-11-02 📝 Translation Quality
Summary: The translation of the 'Interactive Sessions' and 'The builtins Namespace' sections is accurate, fluent, and terminologically consistent with the glossary and established style. No blocking or major issues were found; only a couple of minor stylistic nits regarding punctuation placement within code spans are noted. Accurate and clear rendering of technical concepts like namespaces, LEGB rule, and builtins mechanics in the modified sections Consistent and correct use of full-width Chinese punctuation throughout the changed sections Proper spacing maintained between Chinese text and inline code/backticks Code blocks, figure directives, and admonitions preserved correctly with no structural breakage Suggestions:
🔍 Diff Quality
Summary: The target correctly synced the Issues:
This review was generated automatically by action-translation review mode. |
There was a problem hiding this comment.
🟢 Approval recommended
No issues were found and both translated edits were verified against the upstream source with consistent, non-future sync metadata.
No open issues 🎉
What changed in this PR
This is an automated translation-sync PR that propagates upstream source changes from QuantEcon/lecture-python-programming#654 into the Simplified Chinese (zh-cn) translation of the "Names and Namespaces" lecture. The changes align the Chinese text with modern Python 3 terminology to match what the executable code cells actually use.
I verified both Chinese edits against the source English file at commit 3100228:
- "当我们使用 IPython 的
%run命令运行脚本时…" correctly reflects the source "When we run a script using IPython's%runcommand…". - "这些定义由
builtins模块提供。" correctly reflects "These definitions are provided by thebuiltinsmodule." (replacing the obsolete__builtin__reference). The nearby__builtins__namespace reference on the next line remains correct and consistent.
The state metadata (source-sha, synced-at, model, mode, tool-version) is internally consistent with the PR's embedded sync metadata. The synced-at date (2026-11-02) matches today and is not a future date.
Changes:
- Update
run→%runto match the IPython magic command used in the code cells. - Replace the obsolete
__builtin__module reference with the Python 3builtinsmodule. - Refresh the translation-state YAML (source SHA, sync date, model, mode
NEW→UPDATE, tool version).
| File | Description |
|---|---|
lectures/names.md |
Corrects two translated lines to use %run and builtins, matching upstream Python 3 terminology and the executable code cells. |
.translate/state/names.md.yml |
Updates translation-sync bookkeeping metadata (source SHA, date, model, mode, tool version). |
No issues were found; the translation faithfully and completely reflects the source PR, and the metadata is consistent.
Review effort: Balanced
Automated Translation Sync
This PR contains automated translations from QuantEcon/lecture-python-programming.
Source PR
#654 - [names] Use
builtinsand%run, as Python 3 and the code cells doFiles Updated
lectures/names.md.translate/state/names.md.ymlDetails
This PR was created automatically by the translation action.