From dac3e564ef851cd4105e1c819d44aa51d43ff953 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sun, 28 Jan 2018 14:11:03 +1000 Subject: [PATCH] Add NEWS entry --- .../next/Library/2018-01-28-14-10-51.bpo-30306.TmKMXi.rst | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-01-28-14-10-51.bpo-30306.TmKMXi.rst diff --git a/Misc/NEWS.d/next/Library/2018-01-28-14-10-51.bpo-30306.TmKMXi.rst b/Misc/NEWS.d/next/Library/2018-01-28-14-10-51.bpo-30306.TmKMXi.rst new file mode 100644 index 000000000000000..65df2cdac022b3a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-01-28-14-10-51.bpo-30306.TmKMXi.rst @@ -0,0 +1,4 @@ +contextlib.contextmanager now releases the arguments passed to the +underlying generator as soon as the context manager is entered. Previously +it would keep them alive for as long as the context manager was alive, even +when not being used as a function decorator. Patch by Martin Teichmann.