Advance about_py state to d35eb831 — the content was already current - #160
Merged
Conversation
Recovers the sync failures recorded as lecture-python-programming#610 and #614, without re-translating anything. Source PR #595 changed exactly two lines of about_py.md — the capitalisation `Pytorch` -> `PyTorch` in two places. That fix is already present here, applied by hand in #124 on 2026-06-19: the target carries `PyTorch` three times and `Pytorch` zero times, matching source. The source has not moved on this lecture since #595, so only the state file was stale. A `translate forward` regeneration was attempted first and deliberately discarded. It rewrote 266 lines to deliver a two-character casing fix that was already applied, and it dropped translator content — the tool's own triage flagged an added PyTorch/MATLAB sentence and a Java code comment as "TARGET has additions that were lost during resync", and `git log` traces that content to Zahra's 2025-10-30 commit (#14). Per the 2026-08-20 ruling on QuantEcon/action-translation#276, a natively-translated lecture is not regenerated when a deterministic repair will do. `model`, `tool-version` and `section-count` are deliberately left recording how the text was actually produced, since nothing was regenerated. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for majestic-griffin-10b166 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the translation-sync state metadata for about_py.md so this Persian edition no longer appears “behind” the source when the lecture content is already up to date.
Changes:
- Advance
source-shaforabout_py.mdtod35eb831…. - Update
synced-atto2026-08-20while leaving the generation metadata (model,mode,section-count,tool-version) unchanged.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recovers the sync failures recorded as lecture-python-programming#610 and #614 — without re-translating anything.
What was actually wrong
Only the state file. Source PR #595 changed exactly two lines of
about_py.md:a capitalisation fix in two places. That content is already present here, applied by hand in #124 on 2026-06-19 — this edition carries
PyTorchthree times andPytorchzero times, matching source. And source has not touched the lecture since #595. So the lecture was current and only itssource-shawas stale, at3213613a(2026-05-09).This PR advances it to
d35eb831and stampssynced-at.model,tool-versionandsection-countare deliberately left as they were, since they record how the text was actually produced and nothing was regenerated.Why not
translate forwardIt was attempted first, and discarded. Two reasons:
TARGET has additions that were lost during resync, and the sentence was gone.git logtraces that content to Zahra's 2025-10-30 commit (#14, "update about_py and python_by_example + image fixes") — translator work, not machine output. Per the 2026-08-20 ruling on action-translation#276, a natively-translated lecture is not regenerated when a deterministic repair will do; the same reasoning that hadnumpy.mdhand-ported on the French edition inlecture-python-programming.fr#38.Worth noting for the engine
Both #610 and #614 are structural-parity failures on this lecture, and #614 was filed by the
\translate-resyncretry of the run that filed #610 — the two bodies differ only by every output line number shifting by one. The retry reproduced the failure rather than clearing it, which is part of why resync is no longer the documented recovery route.about_py.mdis also the file that repeatedly fails the rebase automation withstructural parity check failed, leaving sibling PRs un-rebasable. This PR does not address that; it only removes the false "behind" signal.