]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-13814: Explain why generators are not context managers (GH-26835)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Jun 2021 22:03:06 +0000 (15:03 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 22:03:06 +0000 (18:03 -0400)
commitd881002fbdf12ddbd93db3e182dc5cdeb1f90386
treef62dcb8ca51a351cb8ce60f5a0ff5f7eb28c79e5
parent67b3a9995368f89b7ce4a995920b2a83a81c599b
bpo-13814: Explain why generators are not context managers (GH-26835)

Put entry in Design FAQ after a question about a context manager for assignment.
Original patch by Aidan Lowe.
(cherry picked from commit 51f45d085dad3b708f6fe166af517aba69e7e9f7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/faq/design.rst
Misc/NEWS.d/next/Documentation/2021-06-21-15-46-32.bpo-13814.LDcslu.rst [new file with mode: 0644]