<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/contextlib.py, branch 3.6</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/contextlib.py?h=3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/contextlib.py?h=3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2017-06-10T03:36:28Z</updated>
<entry>
<title>bpo-30266: support "= None" pattern in AbstractContextManager (GH-1448) (GH-2054)</title>
<updated>2017-06-10T03:36:28Z</updated>
<author>
<name>Mariatta</name>
<email>Mariatta@users.noreply.github.com</email>
</author>
<published>2017-06-10T03:36:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=753422f6e32e13d96319b090788f0474f1e21fc4'/>
<id>urn:sha1:753422f6e32e13d96319b090788f0474f1e21fc4</id>
<content type='text'>
contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aac5eb9bcb0b43e551a1937ff0a84c1ec52)</content>
</entry>
<entry>
<title>[3.6] bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) (#1105)</title>
<updated>2017-04-13T09:50:21Z</updated>
<author>
<name>Mariatta</name>
<email>Mariatta@users.noreply.github.com</email>
</author>
<published>2017-04-13T09:50:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b409ff41ceb2d7ea7e8d25a7bbf5eb7d46625f3'/>
<id>urn:sha1:9b409ff41ceb2d7ea7e8d25a7bbf5eb7d46625f3</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.
(cherry picked from commit 00c75e9a45ff0366c185e9e8a2e23af5a35481b0)</content>
</entry>
<entry>
<title>[3.6] Clarify exception handler scope in contextlib (GH-1103)</title>
<updated>2017-04-13T03:52:39Z</updated>
<author>
<name>Mariatta</name>
<email>Mariatta@users.noreply.github.com</email>
</author>
<published>2017-04-13T03:52:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bd1173f202f5a3990063d980368e7ad1edc9b5b5'/>
<id>urn:sha1:bd1173f202f5a3990063d980368e7ad1edc9b5b5</id>
<content type='text'>
Moved explicit raise from inside try to try...else.
(cherry picked from commit 680e20beee8bbce9f857b8e7795009191f98b0ba)</content>
</entry>
<entry>
<title>bpo-27122: Fix comment to point to correct issue number (#48)</title>
<updated>2017-02-12T16:13:31Z</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2017-02-12T16:13:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89b1824e693419b20b6a9113e5293f1c1a78065f'/>
<id>urn:sha1:89b1824e693419b20b6a9113e5293f1c1a78065f</id>
<content type='text'>
It took me quite a bit to figure out what this was referring to,
since the given issue number is wrong, and the original commit
message I found through git blame lists a different, also wrong
issue number... see https://bugs.python.org/issue27122#msg279449

(cherry picked from commit af88e7eda4101f36e904771d3cf59a5f740b3b00)</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>
<entry>
<title>Normalize whitespace</title>
<updated>2016-04-08T19:16:16Z</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2016-04-08T19:16:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8bd092b50115560a777ad4f9fc656e5ef8c8c89e'/>
<id>urn:sha1:8bd092b50115560a777ad4f9fc656e5ef8c8c89e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #25609: Introduce contextlib.AbstractContextManager and</title>
<updated>2016-04-08T19:15:27Z</updated>
<author>
<name>Brett Cannon</name>
<email>brett@python.org</email>
</author>
<published>2016-04-08T19:15:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9e080e0e741dd70cf86500f848eee19cf8b29efa'/>
<id>urn:sha1:9e080e0e741dd70cf86500f848eee19cf8b29efa</id>
<content type='text'>
typing.ContextManager.
</content>
</entry>
<entry>
<title>Issue #24336: The contextmanager decorator now works with functions with</title>
<updated>2015-06-28T14:08:35Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-06-28T14:08:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eab770404437bd49ebf897b681221784b0035795'/>
<id>urn:sha1:eab770404437bd49ebf897b681221784b0035795</id>
<content type='text'>
keyword arguments called "func" and "self".  Patch by Martin Panter.
</content>
</entry>
<entry>
<title>Issue #24336: The contextmanager decorator now works with functions with</title>
<updated>2015-06-28T14:06:07Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-06-28T14:06:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=101ff3541cbe5bd9549722dc53c28d6c21b9389c'/>
<id>urn:sha1:101ff3541cbe5bd9549722dc53c28d6c21b9389c</id>
<content type='text'>
keyword arguments called "func" and "self".  Patch by Martin Panter.
</content>
</entry>
</feed>
