diff options
author | Nicolas Tessore <n.tessore@ucl.ac.uk> | 2023-05-23 20:51:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 20:51:56 (GMT) |
commit | d56c933992c86986bd58eb3880aed0ed1b0cadc9 (patch) | |
tree | d5c4630de7661b61442891cc296584e24ae6dbab /Misc | |
parent | 50fce89d123b25e53fa8a0303a169e8887154a0e (diff) | |
download | cpython-d56c933992c86986bd58eb3880aed0ed1b0cadc9.zip cpython-d56c933992c86986bd58eb3880aed0ed1b0cadc9.tar.gz cpython-d56c933992c86986bd58eb3880aed0ed1b0cadc9.tar.bz2 |
gh-104770: Let generator.close() return value (#104771)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-05-23-00-36-02.gh-issue-104770.poSkyY.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-05-23-00-36-02.gh-issue-104770.poSkyY.rst b/Misc/NEWS.d/next/Core and Builtins/2023-05-23-00-36-02.gh-issue-104770.poSkyY.rst new file mode 100644 index 0000000..2103fb7 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-05-23-00-36-02.gh-issue-104770.poSkyY.rst @@ -0,0 +1,2 @@ +If a generator returns a value upon being closed, the value is now returned +by :meth:`generator.close`. |