summaryrefslogtreecommitdiffstats
path: root/Doc/ref
Commit message (Collapse)AuthorAgeFilesLines
* Move the PEP 343 documentation and implementation closer to theNick Coghlan2006-04-252-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 Coghlan2006-04-242-28/+26
| | | | instead of context object
* Update with statement documentation to use same terminology as 2.5a1 ↵Nick Coghlan2006-04-232-27/+38
| | | | implementation
* wrap SyntaxError with \exception{}George Yoshida2006-04-231-1/+1
|
* bug #1462278: small fix in documentation of __op__ vs __rop__ methodsGeorg Brandl2006-04-011-8/+9
|
* typosGeorg Brandl2006-03-311-2/+2
|
* Add index entries for new-style/old-style class.Georg Brandl2006-03-311-1/+5
|
* Add version added info for with statement and context managersNeal Norwitz2006-03-282-0/+4
|
* The "with" statement needs a __future__. :)Phillip J. Eby2006-03-271-0/+11
|
* Document the "with" statement.Phillip J. Eby2006-03-271-1/+56
|
* Document the PEP 343 context manager protocol methods.Phillip J. Eby2006-03-271-0/+58
|
* Yield is now allowed in try-finally, so update docs accordinglyPhillip J. Eby2006-03-251-5/+11
|
* Checking in the code for PEP 357.Guido van Rossum2006-03-071-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 Rossum2006-02-271-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 expressionsNeal Norwitz2006-02-271-1/+1
|
* PEP 308 implementation, including minor refdocs and some testcases. ItThomas Wouters2006-02-271-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 #1421726Fredrik Lundh2006-02-021-1/+1
| | | | fixed typo in language reference
* Add markup to a "Python Standard Library" doc reference I added for bug 839585.Georg Brandl2006-01-201-2/+3
|
* Remove dots in \version{changed,added} argument andGeorg Brandl2006-01-151-1/+1
| | | | correct argument order.
* Bug #839585: mention % string operator in language refGeorg Brandl2005-12-261-0/+6
|
* Updating the short blob about old/new-style classes to reflect (IMHO) moreArmin Rigo2005-12-261-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 improvementNeal Norwitz2005-12-171-19/+21
|
* Add placeholder section on old and new-style classesAndrew M. Kuchling2005-12-041-0/+13
|
* Bug #1359053: Doc: \Uxxxxxxxx escapes _are_ interpreted in raw unicode stringsGeorg Brandl2005-11-221-2/+3
|
* Remove .cvsignore files, as they live in svn:ignoreMartin v. Löwis2005-10-301-3/+0
| | | | properties now.
* add missing "and"Fred Drake2005-10-301-2/+3
|
* Make close brace a paren to match open.Neal Norwitz2005-10-041-1/+1
|
* Armin caught this mistake in bug #973103.Neal Norwitz2005-10-041-1/+1
|
* Correct docs for empty raise when no exception is active.Raymond Hettinger2005-10-031-2/+3
|
* Better wording for integer ref entry.Georg Brandl2005-09-121-2/+2
|
* note that the return and yield statements cannot be used at the top level inFred Drake2005-09-071-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 lateFred Drake2005-09-071-7/+7
| | | | - fix several consistency nits relating to \method{...()}
* Clarify what is meant with "whole numbers".Georg Brandl2005-09-041-1/+2
|
* __new__ is a static methodGeorg Brandl2005-08-261-1/+1
|
* bug [ 1261229 ] __new__ is class methodGeorg Brandl2005-08-251-1/+1
|
* Empty sets and frozensets are also false.Georg Brandl2005-08-211-3/+3
|
* SF bug #1249837: container methods raise KeyError not IndexErrorRaymond Hettinger2005-08-211-0/+2
| | | | Minor clarification.
* Mention explicitly the False is considered false.Georg Brandl2005-08-211-3/+3
|
* add information about alternate implementations, noting that documentationFred Drake2005-07-201-1/+51
| | | | | for the implementation should be consulted (thanks to Evelyn Mitchell for suggesting this)
* Patch [ 1230615 ] Patch for (Doc) #1168746Georg Brandl2005-07-021-11/+14
| | | | Bug [ 1204734 ] incorrect description of __getattribute__
* Fix grammar (it's -> its).Neil Schemenauer2005-06-181-1/+1
|
* [Bug #1193001] Make the notation section use the same productionlist env. as ↵Andrew M. Kuchling2005-06-021-5/+5
| | | | other grammar rules
* Fix:Michael W. Hudson2005-05-261-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 fileFred Drake2005-05-251-5/+12
| | | | (closes SF bug #1167922)
* SF bug #1190451: 6.9 First sentence is confusingRaymond Hettinger2005-04-281-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 Hettinger2005-04-261-1/+1
|
* Add grammar change for allowing ``class B(): pass`` syntax.Brett Cannon2005-04-091-1/+1
|
* SF #1156412: document the __new__() static methodGreg Ward2005-03-081-0/+29
| | | | (merge from release24-maint branch).
* Updates to the exceptions documentation (this is my patch #1156102).Michael W. Hudson2005-03-042-23/+27
|
* fix a bunch of spelling errorsFred Drake2005-01-191-1/+1
| | | | (closes SF patch #1104868)