<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_contextlib.py, branch v2.5.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=v2.5.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_contextlib.py?h=v2.5.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-09-03T01:08:30Z</updated>
<entry>
<title>Backport of decimal module context management updates from rev 51694 to 2.5 release branch</title>
<updated>2006-09-03T01:08:30Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2006-09-03T01:08:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c48daf5bc47383fa8f49fac91babf1d850e6df46'/>
<id>urn:sha1:c48daf5bc47383fa8f49fac91babf1d850e6df46</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Finish bringing SVN into line with latest version of PEP 343 by getting rid of all remaining references to context objects that I could find. Without a __context__() method context objects no longer exist. Also get test_with working again, and adopt a suggestion from Neal for decimal.Context.get_manager()</title>
<updated>2006-05-03T13:02:47Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2006-05-03T13:02:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=afd5e63e243b600e5344a34760d9e6565dafe1a9'/>
<id>urn:sha1:afd5e63e243b600e5344a34760d9e6565dafe1a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Get rid of __context__, per the latest changes to PEP 343 and python-dev</title>
<updated>2006-05-02T19:47:52Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-05-02T19:47:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da5b701aeef755f2317a41e36cc950cfdc0c95cb'/>
<id>urn:sha1:da5b701aeef755f2317a41e36cc950cfdc0c95cb</id>
<content type='text'>
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
</content>
</entry>
<entry>
<title>Move the PEP 343 documentation and implementation closer to the</title>
<updated>2006-04-25T10:56:51Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2006-04-25T10:56:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a7e820a408fa3df02f8d42a183e06774e05cd871'/>
<id>urn:sha1:a7e820a408fa3df02f8d42a183e06774e05cd871</id>
<content type='text'>
terminology in the alpha 1 documentation.

 - "context manager" reverts to its alpha 1 definition
 - the term "context specifier" goes away entirely
 - contextlib.GeneratorContextManager is renamed GeneratorContext

There are still a number of changes relative to alpha 1:

  - the expression in the with statement is explicitly called the
    "context expression" in the language reference
  - the terms 'with statement context', 'context object' or 'with
    statement context' are used in several places instead of a bare
    'context'. The aim of this is to avoid ambiguity in relation to the
    runtime context set up when the block is executed, and the context
    objects that already exist in various application domains (such as
    decimal.Context)
  - contextlib.contextmanager is renamed to contextfactory
    This best reflects the nature of the function resulting from the
    use of that decorator
  - decimal.ContextManager is renamed to WithStatementContext
    Simple dropping the 'Manager' part wasn't possible due to the
    fact that decimal.Context already exists and means something
    different. WithStatementContext is ugly but workable.

A technically unrelated change snuck into this commit:
contextlib.closing now avoids the overhead of creating a
generator, since it's trivial to implement that particular
context manager directly.
</content>
</entry>
<entry>
<title>Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .)</title>
<updated>2006-04-24T04:59:28Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2006-04-24T04:59:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0e01962d51e4509d864419240c393cc27187ccd1'/>
<id>urn:sha1:0e01962d51e4509d864419240c393cc27187ccd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix contextlib.nested to cope with exit methods raising and handling exceptions</title>
<updated>2006-04-24T04:37:15Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2006-04-24T04:37:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=da2268feecd4b956161ed7fdd05da125606189cc'/>
<id>urn:sha1:da2268feecd4b956161ed7fdd05da125606189cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>DecimalContextTestCase:  this permanently changed the</title>
<updated>2006-04-10T20:25:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-04-10T20:25:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a19dc0beb1d2e499b86f56a992e78e7e3d767ee3'/>
<id>urn:sha1:a19dc0beb1d2e499b86f56a992e78e7e3d767ee3</id>
<content type='text'>
default decimal context, causing test_tokenize to fail
if it ran after test_contextlib.  Changed to restore
the decimal context in effect at the test's start.
</content>
</entry>
<entry>
<title>test_contextlib wasn't actually being run by regrtest.py.  Or more precisely,</title>
<updated>2006-04-10T18:33:17Z</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-04-10T18:33:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bd0c10f7c99db3272b5db2b1f21ed43b96d260c0'/>
<id>urn:sha1:bd0c10f7c99db3272b5db2b1f21ed43b96d260c0</id>
<content type='text'>
it was being run, but no tests were actually executed!
</content>
</entry>
<entry>
<title>Fix contextlib not copying function attributes</title>
<updated>2006-03-28T00:07:24Z</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-03-28T00:07:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=35fd142435a5123d3ce740d14068034dab9ee5ec'/>
<id>urn:sha1:35fd142435a5123d3ce740d14068034dab9ee5ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a problem with @contextmanager not detecting a broken generator</title>
<updated>2006-03-25T00:28:24Z</updated>
<author>
<name>Phillip J. Eby</name>
<email>pje@telecommunity.com</email>
</author>
<published>2006-03-25T00:28:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6edd2586082f62a5ac61af5acab77b63919faa47'/>
<id>urn:sha1:6edd2586082f62a5ac61af5acab77b63919faa47</id>
<content type='text'>
that yields after a throw().  Make @contextmanager not reraise
exceptions, but return a false value in that case instead.  Add test
cases for both behaviors.
</content>
</entry>
</feed>
