Skip to content

A few README tweaks (#73)#79

Merged
Mariatta merged 1 commit intopython:3.6from
Mariatta:gh-73-3.6
Feb 13, 2017
Merged

A few README tweaks (#73)#79
Mariatta merged 1 commit intopython:3.6from
Mariatta:gh-73-3.6

Conversation

@Mariatta
Copy link
Copy Markdown
Member

  • 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)

* 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)
@Mariatta Mariatta merged commit 2d0c228 into python:3.6 Feb 13, 2017
@Mariatta Mariatta deleted the gh-73-3.6 branch February 13, 2017 23:48
zware added a commit that referenced this pull request Feb 15, 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)
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants