SIGN IN SIGN UP

[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 0d76dccc3b4376ba075a1737f58809e3d83aaaa3)

Co-authored-by: Connor Denihan <188690869+cdenihan@users.noreply.github.com>
M
Miss Islington (bot) committed
a7246323a28a707e8dab9437b1c07ffbc0d5d5a0
Parent: 3789d8d
Committed by GitHub <noreply@github.com> on 6/26/2025, 1:34:11 PM