summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcontextlib.tex
Commit message (Collapse)AuthorAgeFilesLines
* Delete the LaTeX doc tree.Georg Brandl2007-08-151-130/+0
|
* Fix typo in example (should be backported, but my maintenance branch is ↵Nick Coghlan2007-05-201-1/+1
| | | | woefully out of date)
* Get rid of a couple more context object references, fix some markup and ↵Nick Coghlan2006-05-031-7/+8
| | | | clarify what happens when a generator context function swallows an exception.
* Finish bringing SVN into line with latest version of PEP 343 by getting rid ↵Nick Coghlan2006-05-031-12/+13
| | | | 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()
* Get rid of __context__, per the latest changes to PEP 343 and python-devGuido van Rossum2006-05-021-47/+0
| | | | | | | | 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.
* Fix an error in the last contextlib.closing exampleNick Coghlan2006-04-261-3/+3
|
* Fix latex typoNick Coghlan2006-04-251-1/+1
|
* Move the PEP 343 documentation and implementation closer to theNick Coghlan2006-04-251-26/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Change PEP 343 related documentation to use the term context specifier ↵Nick Coghlan2006-04-241-10/+19
| | | | instead of context object
* Update contextlib documentation to use the same terminology as the module ↵Nick Coghlan2006-04-231-7/+8
| | | | implementation
* Add version added info for with statement and context managersNeal Norwitz2006-03-281-0/+2
|
* Fix some missing importsPhillip J. Eby2006-03-281-0/+2
|
* Document the contextlib module.Phillip J. Eby2006-03-271-0/+140