<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/decimal.py, branch v2.5a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/decimal.py?h=v2.5a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/decimal.py?h=v2.5a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-04-25T10:56:51Z</updated>
<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>Um, I thought I'd already checked this in.</title>
<updated>2006-03-10T02:28:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-03-10T02:28:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f669436189dd44a841caa9ab1ad97a3f7662bf58'/>
<id>urn:sha1:f669436189dd44a841caa9ab1ad97a3f7662bf58</id>
<content type='text'>
Anyway, this is the changes to the with-statement
so that __exit__ must return a true value in order
for a pending exception to be ignored.
The PEP (343) is already updated.
</content>
</entry>
<entry>
<title>Updates to the with-statement:</title>
<updated>2006-02-28T21:57:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-02-28T21:57:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1a5e21e0334a6d4e1c756575023c7157fc9ee306'/>
<id>urn:sha1:1a5e21e0334a6d4e1c756575023c7157fc9ee306</id>
<content type='text'>
- New semantics for __exit__() -- it must re-raise the exception
  if type is not None; the with-statement itself doesn't do this.
  (See the updated PEP for motivation.)

- Added context managers to:
  - file
  - thread.LockType
  - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore}
  - decimal.Context

- Added contextlib.py, which defines @contextmanager, nested(), closing().

- Unit tests all around; bot no docs yet.
</content>
</entry>
<entry>
<title>bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation</title>
<updated>2005-08-22T19:35:18Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2005-08-22T19:35:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f33d01d304c349a7f555779c7c99930f1203adb7'/>
<id>urn:sha1:f33d01d304c349a7f555779c7c99930f1203adb7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply the _is_special guard.</title>
<updated>2005-06-20T09:49:42Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-06-20T09:49:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e5a0a9609faea9afdc6f81f1f6dfa07b1437e3ae'/>
<id>urn:sha1:e5a0a9609faea9afdc6f81f1f6dfa07b1437e3ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor namespace clean-up.</title>
<updated>2005-06-07T18:52:34Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-06-07T18:52:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=eb2608415ee4eb8aaea746f6a313937e264d0cda'/>
<id>urn:sha1:eb2608415ee4eb8aaea746f6a313937e264d0cda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Fix decimal's handling of foreign types.  Now returns NotImplemented</title>
<updated>2005-03-27T10:47:39Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-27T10:47:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=267b868f23a85c6a63a06452c85487355cf9ab8a'/>
<id>urn:sha1:267b868f23a85c6a63a06452c85487355cf9ab8a</id>
<content type='text'>
  instead of raising a TypeError.  Allows other types to successfully
  implement __radd__() style methods.
* Remove future division import from test suite.
* Remove test suite's shadowing of __builtin__.dir().
</content>
</entry>
<entry>
<title>Bug #1163325:  "special" decimals aren't hashable</title>
<updated>2005-03-15T04:59:17Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-03-15T04:59:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bea3f6f5c788eb4f0f7639913ff89654152864c0'/>
<id>urn:sha1:bea3f6f5c788eb4f0f7639913ff89654152864c0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix small grammatical error in a docstring.</title>
<updated>2005-03-01T03:12:26Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2005-03-01T03:12:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46b0802ccd9a9c47b27a285526fbb2a8bee5b8cb'/>
<id>urn:sha1:46b0802ccd9a9c47b27a285526fbb2a8bee5b8cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace list of constants with tuples of constants.</title>
<updated>2005-02-06T06:57:08Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-02-06T06:57:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbecd93b7203cd187c1978de1207c29d3a9a686c'/>
<id>urn:sha1:dbecd93b7203cd187c1978de1207c29d3a9a686c</id>
<content type='text'>
</content>
</entry>
</feed>
