]> 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:02:43 +0000 (15:02 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Jun 2021 22:02:43 +0000 (18:02 -0400)
commit1e16217204c0e8e595c4d1e869c81899bfe3376b
tree42b5dd9e89d0ecb4ede2f5662b8ef6330202d87a
parent20a1495b8a93596b322ea19bb09008db036eb7e6
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]