| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Move the PEP 343 documentation and implementation closer to the | Nick Coghlan | 2006-04-25 | 2 | -32/+33 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Coghlan | 2006-04-24 | 2 | -28/+26 |
| | | | | | instead of context object | ||||
| * | Update with statement documentation to use same terminology as 2.5a1 ↵ | Nick Coghlan | 2006-04-23 | 2 | -27/+38 |
| | | | | | implementation | ||||
| * | wrap SyntaxError with \exception{} | George Yoshida | 2006-04-23 | 1 | -1/+1 |
| | | |||||
| * | bug #1462278: small fix in documentation of __op__ vs __rop__ methods | Georg Brandl | 2006-04-01 | 1 | -8/+9 |
| | | |||||
| * | typos | Georg Brandl | 2006-03-31 | 1 | -2/+2 |
| | | |||||
| * | Add index entries for new-style/old-style class. | Georg Brandl | 2006-03-31 | 1 | -1/+5 |
| | | |||||
| * | Add version added info for with statement and context managers | Neal Norwitz | 2006-03-28 | 2 | -0/+4 |
| | | |||||
| * | The "with" statement needs a __future__. :) | Phillip J. Eby | 2006-03-27 | 1 | -0/+11 |
| | | |||||
| * | Document the "with" statement. | Phillip J. Eby | 2006-03-27 | 1 | -1/+56 |
| | | |||||
| * | Document the PEP 343 context manager protocol methods. | Phillip J. Eby | 2006-03-27 | 1 | -0/+58 |
| | | |||||
| * | Yield is now allowed in try-finally, so update docs accordingly | Phillip J. Eby | 2006-03-25 | 1 | -5/+11 |
| | | |||||
| * | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 1 | -0/+7 |
| | | | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation). | ||||
| * | PEP 343 -- the with-statement. | Guido van Rossum | 2006-02-27 | 1 | -0/+6 |
| | | | | | | | | | | | | | | This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global). | ||||
| * | Note version added for conditional expressions | Neal Norwitz | 2006-02-27 | 1 | -1/+1 |
| | | |||||
| * | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;) | ||||
| * | SF patch #1421726 | Fredrik Lundh | 2006-02-02 | 1 | -1/+1 |
| | | | | | fixed typo in language reference | ||||
| * | Add markup to a "Python Standard Library" doc reference I added for bug 839585. | Georg Brandl | 2006-01-20 | 1 | -2/+3 |
| | | |||||
| * | Remove dots in \version{changed,added} argument and | Georg Brandl | 2006-01-15 | 1 | -1/+1 |
| | | | | | correct argument order. | ||||
| * | Bug #839585: mention % string operator in language ref | Georg Brandl | 2005-12-26 | 1 | -0/+6 |
| | | |||||
| * | Updating the short blob about old/new-style classes to reflect (IMHO) more | Armin Rigo | 2005-12-26 | 1 | -7/+35 |
| | | | | | | | | | precisely the motivation and the differences. Added links to www.python.org/doc/newstyle.html and a footnote to warn against the statement "x[i] is equivalent to x.__getitem__(i)", which already caused many invalid bug reports on SF. | ||||
| * | Doc for PEP 341, needs improvement | Neal Norwitz | 2005-12-17 | 1 | -19/+21 |
| | | |||||
| * | Add placeholder section on old and new-style classes | Andrew M. Kuchling | 2005-12-04 | 1 | -0/+13 |
| | | |||||
| * | Bug #1359053: Doc: \Uxxxxxxxx escapes _are_ interpreted in raw unicode strings | Georg Brandl | 2005-11-22 | 1 | -2/+3 |
| | | |||||
| * | Remove .cvsignore files, as they live in svn:ignore | Martin v. Löwis | 2005-10-30 | 1 | -3/+0 |
| | | | | | properties now. | ||||
| * | add missing "and" | Fred Drake | 2005-10-30 | 1 | -2/+3 |
| | | |||||
| * | Make close brace a paren to match open. | Neal Norwitz | 2005-10-04 | 1 | -1/+1 |
| | | |||||
| * | Armin caught this mistake in bug #973103. | Neal Norwitz | 2005-10-04 | 1 | -1/+1 |
| | | |||||
| * | Correct docs for empty raise when no exception is active. | Raymond Hettinger | 2005-10-03 | 1 | -2/+3 |
| | | |||||
| * | Better wording for integer ref entry. | Georg Brandl | 2005-09-12 | 1 | -2/+2 |
| | | |||||
| * | note that the return and yield statements cannot be used at the top level in | Fred Drake | 2005-09-07 | 1 | -1/+6 |
| | | | | | | exec statements; people coming from certain other languages seem to be confused by this on a regular basis | ||||
| * | - fix typo report by email, only 1.5 years late | Fred Drake | 2005-09-07 | 1 | -7/+7 |
| | | | | | - fix several consistency nits relating to \method{...()} | ||||
| * | Clarify what is meant with "whole numbers". | Georg Brandl | 2005-09-04 | 1 | -1/+2 |
| | | |||||
| * | __new__ is a static method | Georg Brandl | 2005-08-26 | 1 | -1/+1 |
| | | |||||
| * | bug [ 1261229 ] __new__ is class method | Georg Brandl | 2005-08-25 | 1 | -1/+1 |
| | | |||||
| * | Empty sets and frozensets are also false. | Georg Brandl | 2005-08-21 | 1 | -3/+3 |
| | | |||||
| * | SF bug #1249837: container methods raise KeyError not IndexError | Raymond Hettinger | 2005-08-21 | 1 | -0/+2 |
| | | | | | Minor clarification. | ||||
| * | Mention explicitly the False is considered false. | Georg Brandl | 2005-08-21 | 1 | -3/+3 |
| | | |||||
| * | add information about alternate implementations, noting that documentation | Fred Drake | 2005-07-20 | 1 | -1/+51 |
| | | | | | | for the implementation should be consulted (thanks to Evelyn Mitchell for suggesting this) | ||||
| * | Patch [ 1230615 ] Patch for (Doc) #1168746 | Georg Brandl | 2005-07-02 | 1 | -11/+14 |
| | | | | | Bug [ 1204734 ] incorrect description of __getattribute__ | ||||
| * | Fix grammar (it's -> its). | Neil Schemenauer | 2005-06-18 | 1 | -1/+1 |
| | | |||||
| * | [Bug #1193001] Make the notation section use the same productionlist env. as ↵ | Andrew M. Kuchling | 2005-06-02 | 1 | -5/+5 |
| | | | | | other grammar rules | ||||
| * | Fix: | Michael W. Hudson | 2005-05-26 | 1 | -0/+2 |
| | | | | | | | | [ 1207501 ] Issue in grammar We didn't define dotted_name in the pseudo-grammar in the reference docs. Backport candidate. | ||||
| * | update documentation on what constitutes a line in a source file | Fred Drake | 2005-05-25 | 1 | -5/+12 |
| | | | | | (closes SF bug #1167922) | ||||
| * | SF bug #1190451: 6.9 First sentence is confusing | Raymond Hettinger | 2005-04-28 | 1 | -7/+8 |
| | | | | | | | | * Fixed incorrect wording: expression->exception * Noted the specific exception reported by "raise" when the is nothing to re-raise. * Eliminated several instances of "e.g." as recommended in the style guide. | ||||
| * | Fix typo. | Raymond Hettinger | 2005-04-26 | 1 | -1/+1 |
| | | |||||
| * | Add grammar change for allowing ``class B(): pass`` syntax. | Brett Cannon | 2005-04-09 | 1 | -1/+1 |
| | | |||||
| * | SF #1156412: document the __new__() static method | Greg Ward | 2005-03-08 | 1 | -0/+29 |
| | | | | | (merge from release24-maint branch). | ||||
| * | Updates to the exceptions documentation (this is my patch #1156102). | Michael W. Hudson | 2005-03-04 | 2 | -23/+27 |
| | | |||||
| * | fix a bunch of spelling errors | Fred Drake | 2005-01-19 | 1 | -1/+1 |
| | | | | | (closes SF patch #1104868) | ||||
