cpython/Doc/reference
Miss Islington (bot) a7246323a2
Some checks are pending
Tests / Windows MSI (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
[3.13] gh-135110: Fix misleading generator.close() documentation (GH-135152) (GH-135986)
gh-135110: Fix misleading `generator.close()` documentation (GH-135152)

The documentation incorrectly stated that generator.close() 'raises' a
GeneratorExit exception. This was misleading because the method doesn't
raise the exception to the caller - it sends the exception internally
to the generator and returns None.
(cherry picked from commit 0d76dccc3b)

Co-authored-by: Connor Denihan <188690869+cdenihan@users.noreply.github.com>
2025-06-26 13:34:11 +00:00
..
compound_stmts.rst [3.13] gh-131457: Fix typo in BNF description of function signatures (GH-131460) (#131575) 2025-03-22 08:00:54 +00:00
datamodel.rst [3.13] doc: update co_flags reference (GH-132300) (#132936) 2025-04-26 21:47:51 +03:00
executionmodel.rst [3.13] gh-70870: Clarify dual usage of 'free variable' (GH-122545) (#125088) 2024-10-08 17:58:47 +10:00
expressions.rst [3.13] gh-135110: Fix misleading generator.close() documentation (GH-135152) (GH-135986) 2025-06-26 13:34:11 +00:00
grammar.rst Docs: Add label to grammar spec for linking from PEPs (#113235) 2023-12-17 12:23:14 -07:00
import.rst Doc: update term "namespace package" (GH-129251) 2025-02-15 15:10:24 +09:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
introduction.rst [3.13] GH-103484: Fix permanently redirects reported by linkcheck (GH-124144) (#124151) 2024-09-24 00:43:04 +00:00
lexical_analysis.rst [3.13] gh-127833: lexical analysis: Add backticks to BOM example (GH-132407) (#133633) 2025-05-08 01:42:05 +00:00
simple_stmts.rst [3.13] gh-126720: Docs: Miscellaneous corrections to simple statements in the language reference (GH-126720) (#126885) 2024-12-02 15:10:59 +01:00
toplevel_components.rst GH-97950: Use new-style index directive ('builtin') (#104164) 2023-05-06 06:54:08 +03:00