<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_contextlib.py, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_contextlib.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_contextlib.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-01-28T04:17:46Z</updated>
<entry>
<title>bpo-30306: release arguments of contextmanager (GH-1500)</title>
<updated>2018-01-28T04:17:46Z</updated>
<author>
<name>Martin Teichmann</name>
<email>lkb.teichmann@gmail.com</email>
</author>
<published>2018-01-28T04:17:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd0e087edc8f1e4d2c0913236b1a62a77d9db6d8'/>
<id>urn:sha1:dd0e087edc8f1e4d2c0913236b1a62a77d9db6d8</id>
<content type='text'>
The arguments to a generator function which is declared as a
contextmanager are stored inside the context manager, and
thus are kept alive, even when it is used as a regular context
manager, and not as a function decorator (where it needs
the original arguments to recreate the generator on each
call).

This is a possible unnecessary memory leak, so this changes
contextmanager.__enter__ to release the saved arguments,
as that method being called means that particular CM instance
isn't going to need to recreate the underlying generator.

Patch by Martin Teichmann.
</content>
</entry>
<entry>
<title>bpo-29302: Implement contextlib.AsyncExitStack. (#4790)</title>
<updated>2018-01-25T20:51:18Z</updated>
<author>
<name>Ilya Kulakov</name>
<email>kulakov.ilya@gmail.com</email>
</author>
<published>2018-01-25T20:51:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1aa094f74039cd20fdc7df56c68f6848c18ce4dd'/>
<id>urn:sha1:1aa094f74039cd20fdc7df56c68f6848c18ce4dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464)</title>
<updated>2017-11-23T00:23:28Z</updated>
<author>
<name>Jesse-Bakker</name>
<email>jessebakker00@gmail.com</email>
</author>
<published>2017-11-23T00:23:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0784a2e5b174d2dbf7b144d480559e650c5cf64c'/>
<id>urn:sha1:0784a2e5b174d2dbf7b144d480559e650c5cf64c</id>
<content type='text'>
Adds a simpler and faster alternative to ExitStack for handling
single optional context managers without having to change the
lexical structure of your code.</content>
</entry>
<entry>
<title>bpo-31370: Remove support for threads-less builds (#3385)</title>
<updated>2017-09-07T16:56:24Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-07T16:56:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344'/>
<id>urn:sha1:a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344</id>
<content type='text'>
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

</content>
</entry>
<entry>
<title>bpo-30266: support "= None" pattern in AbstractContextManager (#1448)</title>
<updated>2017-06-09T15:21:47Z</updated>
<author>
<name>Jelle Zijlstra</name>
<email>jelle.zijlstra@gmail.com</email>
</author>
<published>2017-06-09T15:21:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57161aac5eb9bcb0b43e551a1937ff0a84c1ec52'/>
<id>urn:sha1:57161aac5eb9bcb0b43e551a1937ff0a84c1ec52</id>
<content type='text'>
contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958.</content>
</entry>
<entry>
<title>bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949)</title>
<updated>2017-04-11T09:11:13Z</updated>
<author>
<name>svelankar</name>
<email>siddharth.velankar@gmail.com</email>
</author>
<published>2017-04-11T09:11:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=00c75e9a45ff0366c185e9e8a2e23af5a35481b0'/>
<id>urn:sha1:00c75e9a45ff0366c185e9e8a2e23af5a35481b0</id>
<content type='text'>
contextlib._GeneratorContextManager.__exit__ includes a special case to deal with
PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context
manager body.

Previously this check was too permissive, and undid one level of chaining on *all*
RuntimeError instances, not just those that wrapped a StopIteration instance.</content>
</entry>
<entry>
<title>Added more tests for issue #27122.</title>
<updated>2016-06-20T02:30:31Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-06-20T02:30:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9a573a0c23f4814946393a901b3f0ecbf91c268b'/>
<id>urn:sha1:9a573a0c23f4814946393a901b3f0ecbf91c268b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added more tests for issue #27122.</title>
<updated>2016-06-20T02:29:54Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-06-20T02:29:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ce1a9f309fd5b88e2792a8e31c237412fc163d28'/>
<id>urn:sha1:ce1a9f309fd5b88e2792a8e31c237412fc163d28</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #27123: When an exception is raised within the context being</title>
<updated>2016-06-14T16:24:31Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2016-06-14T16:24:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=881aa389725b5becaa5f3115d97563fc2c69a70d'/>
<id>urn:sha1:881aa389725b5becaa5f3115d97563fc2c69a70d</id>
<content type='text'>
managed by a contextlib.ExitStack() and one of the exit stack
generators catches and raises it in a chain, do not re-raise the
original exception when exiting, let the new chained one through.
This avoids the PEP 479 bug described in issue25782.
</content>
</entry>
<entry>
<title>Issue #27123: When an exception is raised within the context being</title>
<updated>2016-06-14T16:19:20Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2016-06-14T16:19:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba2ecd68414b9c53d00560579f5bc13459bc0449'/>
<id>urn:sha1:ba2ecd68414b9c53d00560579f5bc13459bc0449</id>
<content type='text'>
managed by a contextlib.ExitStack() and one of the exit stack
generators catches and raises it in a chain, do not re-raise the
original exception when exiting, let the new chained one through.
This avoids the PEP 479 bug described in issue25782.
</content>
</entry>
</feed>
