Merged
Conversation
berkerpeksag
approved these changes
Feb 13, 2017
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Sep 9, 2017
Add __all__ to stackless. Add entries to the module's __dict__ for the computed properties (i.e. current, main, ...). This helps IDEs (PyDev) to recognise the expression "stackless.current" as a defined name. (grafted from d5e6830501279c287a7971152a26b2ad5d244168)
akruis
pushed a commit
to akruis/cpython
that referenced
this pull request
Sep 9, 2017
Fixed tasklet.raise_exception and channel.send_exception to raise a correct TypeError, if called without arguments. (grafted from d8e8ff8b72508dd3c642d8aa3ff82065daf01abf)
lysnikolaou
referenced
this pull request
in lysnikolaou/cpython
Oct 31, 2018
jaraco
pushed a commit
that referenced
this pull request
Dec 2, 2022
jaraco
pushed a commit
to jaraco/cpython
that referenced
this pull request
Feb 17, 2023
jaraco
added a commit
to jaraco/cpython
that referenced
this pull request
Feb 17, 2023
This was referenced Feb 11, 2025
SonicField
added a commit
to SonicField/cpython
that referenced
this pull request
Apr 22, 2026
Per pythia python#79 python#3 [chat L2032] + supervisor [chat L2034] assignment: the brace-counted scan methodology that produced 100/123 = 81.3% Tier 5 close ratio existed only in chat history (D-1776880902). Anyone re-grepping in two weeks reproduces the same /144-class lapse. This script anchors the methodology in repo: - Brace-balanced extraction of HIRBuilder::emit* method definitions (multi-line signatures + any return type + balanced { } body) - Categorization: stub (≤8 body lines + has hir_builder_emit_*_c call) / partial (>8 body lines + has C call) / pure C++ (no C call) - Output: counts + exhaustive pure-C++ + partial method lists Reference values verified at HEAD a642405 (post-Tier-5-close, push 62): TOTAL: 123 STUBS: 93 PARTIAL: 7 PURE C++: 23 RATIO: 100/123 = 81.3% Closes pythia python#79 python#3 'methodology not committed to repo' substance. Anyone running scripts/count_emit_methods.sh reproduces the canonical baseline without needing chat-search or external memory. Origin lessons embedded in script header: - /144 propagated 2026-04-21 (commit 7783df7) → 2026-04-22 Tier 5 close - Real denominator at HEAD a642405 was 123 (pythia python#78 python#1 catch) - Methodology lives in repo, not chat Authorization chain: - pythia python#79 python#3 surfaced gap: chat L2032 - supervisor python#3 assignment: chat L2034
SonicField
added a commit
to SonicField/cpython
that referenced
this pull request
Apr 22, 2026
Per pythia python#79 python#4 [chat L2032] + supervisor [chat L2034] python#4 assignment + theologian [chat L2036] design + generalist take. Closes pythia python#79 python#4 'PartialConversion calcification trigger conditional on external direction' substance: provides a forcing-function (test that fails in the calcification window) instead of an aspirational marker (REABSORB-WHEN comment alone, which depends on a future reader seeing it at the right moment). Lib/test/test_phoenix_partial_conversions.py: Pre-condition + assertion pattern per theologian L2036 spec. test_anycall_reabsorb_when_invokes_converted: Pre-condition: at least one of bool HIRBuilder::emitInvokeFunction / Native / Method remains C++ in builder.cpp → skip (legitimate partial state). Assertion: when all 3 INVOKE_* converted, fail if hir_builder_emit_awaited_call_tail_c bridge call remains in builder.cpp (i.e. emitAnyCall body still partial). Failure msg cites builder_emit_c.c PARTIAL CONVERSION ARTIFACT comment + reabsorb action so future readers locate the decision context. VERIFIED PASS today (INVOKE_* still C++ → test skipped): $ python3 -m unittest Lib.test.test_phoenix_partial_conversions -v test_anycall_reabsorb_when_invokes_converted: skipped Ran 1 test in 0.001s, OK (skipped=1) Pattern docs in module docstring for future PartialConversion authors: 1. Add test_<method>_reabsorb_when_<condition> 2. Encode pre-condition as text-grep on builder.cpp source 3. Encode assertion as bridge-symbol grep with explicit failure msg Forces the calcification check to run in EVERY normal test gate cycle, without requiring CI machinery additions (no lint script, no DCHECK runtime overhead, no comment-only marker reliance). Pattern generalizes: each future PartialConversion gets one test function. Authorization chain: - pythia python#79 python#4 surfaced calcification risk: chat L2032 - supervisor python#4 assignment to theologian (design): chat L2034 - theologian design (option ii test-as-forcing-function): chat L2036 - generalist implementation per scope-for-generalist-if-she-takes-it: chat L2034 ack
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.
Add a paragraph at the top for users, not builders, of Python.
Use nicer rst url syntax to avoid borking paragraphs in the plain text.
Contributed by Ned Batchelder @nedbat
(cherry picked from commit 3cdbd68)