SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

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.
C
Connor Denihan committed
0d76dccc3b4376ba075a1737f58809e3d83aaaa3
Parent: fb9e292
Committed by GitHub <noreply@github.com> on 6/26/2025, 1:27:25 PM