[2.7] bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations#366
Merged
Merged
Conversation
|
@zhangyangyu, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @gvanrossum and @loewis to be potential reviewers. |
serhiy-storchaka
approved these changes
Mar 1, 2017
SonicField
added a commit
to SonicField/cpython
that referenced
this pull request
May 12, 2026
…line) Authored per supervisor 22:23:05Z disposition of pythia python#366 + 23:38:14Z directive (post-c13 codification batch). Moves synthetic- falsifier-at-gate rule from chat-resident decision (D-1778621243) into docs/methodology/ structural location, addressing pythia python#366's central critique: rule-as-text vs rule-as-enforcement. Files: NEW docs/methodology/synthetic_falsifier_at_gate.md (+75 LOC) Specifies: - Motivation (2026-05-12 a2e8808 hook bash if-then-fi bug shipped through normal review; c8/c9/c10 hook-theatrical window; surfaced by pythia python#364 falsifier dispatch + 21:25Z synthetic test) - Covered defensive-infra paths (scripts/pre-commit-*, .git/hooks/*, scripts/gate_phoenix.sh, scripts/build_phoenix.sh, sidecar/restart infra, *_verify.cpp static_assert files) - 3-step test pattern (inject regression -> verify guard fires -> revert, cite outcome in commit body) - Examples per defensive-infra class (pre-commit hook, Tier 1 gate, static_assert verifier, sidecar/restart enforcement) - Self-falsifying disclaimer (rule is itself defensive infrastructure; 2026-05-12 incident was unintentional first falsifier of the rule's NEED, not its sufficiency) - Enforcement chain (author-side cite + gatekeeper APPROVE checklist + medic flag + supervisor dispose) - Out-of-scope (routine code, docs-only, test-only, natural-failure bug fixes) - Non-coverage caveat (raises floor, does not raise ceiling) NOT a v2.x amendment per moratorium (D-1778554524) — operational discipline / methodology document. Per pythia python#366 6-month-regret framing: this addendum is the move-the-rule-from-chat-to-corpus intervention; whether agents actually run synthetic-falsifier tests at defensive-infra commit time is the falsifier of THIS document. PRE-COMMIT BUILD: doc-only; pre-commit hook docs-path-skip per a2e8808 self-config (verified 21:48:32Z generalist x86 install).
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.
backports to 2.7 for #51