summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref7.tex
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1489771: update syntax rules in Python Reference Manual.Žiga Seilnacht2007-03-241-1/+1
| | | | | | | | | Python 2.5 added support for explicit relative import statements and yield expressions, which were missing in the manual. Also fix grammar productions that used the names from the Grammar file, markup that broke the generated grammar.txt, and wrap some lines that broke the pdf output. (backport from rev. 54559)
* Duplicated description about the illegal continue usage can be found in ↵George Yoshida2006-05-121-5/+2
| | | | | | nearly the same place. They are same, so keep the original one and remove the later-added one.
* At first there were 6 steps, but one was removed after that.George Yoshida2006-05-121-1/+1
|
* Finish bringing SVN into line with latest version of PEP 343 by getting rid ↵Nick Coghlan2006-05-031-2/+2
| | | | 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-8/+5
| | | | | | | | 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.
* Patch #1479438: add \keyword markup for "with".Georg Brandl2006-04-301-2/+2
|
* Move the PEP 343 documentation and implementation closer to theNick Coghlan2006-04-251-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+5
| | | | instead of context object
* Update with statement documentation to use same terminology as 2.5a1 ↵Nick Coghlan2006-04-231-7/+6
| | | | implementation
* Add version added info for with statement and context managersNeal Norwitz2006-03-281-0/+2
|
* The "with" statement needs a __future__. :)Phillip J. Eby2006-03-271-0/+11
|
* Document the "with" statement.Phillip J. Eby2006-03-271-1/+56
|
* 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).
* Doc for PEP 341, needs improvementNeal Norwitz2005-12-171-19/+21
|
* 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.
* Add grammar change for allowing ``class B(): pass`` syntax.Brett Cannon2005-04-091-1/+1
|
* Updates to the exceptions documentation (this is my patch #1156102).Michael W. Hudson2005-03-041-13/+13
|
* clarify discussion of iteration in the section on the "for" statementFred Drake2004-11-021-2/+4
| | | | (SF bug #829073)
* clarify trailing comma in function argument listFred Drake2004-11-021-4/+4
| | | | (SF bug #798652)
* This is Mark Russell's patch:Michael W. Hudson2004-08-171-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 1009560 ] Fix @decorator evaluation order From the description: Changes in this patch: - Change Grammar/Grammar to require newlines between adjacent decorators. - Fix order of evaluation of decorators in the C (compile.c) and python (Lib/compiler/pycodegen.py) compilers - Add better order of evaluation check to test_decorators.py (test_eval_order) - Update the decorator documentation in the reference manual (improve description of evaluation order and update syntax description) and the comment: Used Brett's evaluation order (see http://mail.python.org/pipermail/python-dev/2004-August/047835.html) (I'm checking this in for Anthony who was having problems getting SF to talk to him)
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-021-1/+26
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* The expression list in inheritance is not optional. Fixes #960448.Martin v. Löwis2004-06-021-1/+1
| | | | Will backport to 2.3.
* - update to reflect that base classes can be class types as well asFred Drake2003-09-241-2/+5
| | | | | | | | "classic" class objects [partially fixes SF bug #453684] - add note that new-style classes can use descriptors to implement instance variables in different ways
* SF patch#786531 'the the' typo. Contributed by George YoshidaRaymond Hettinger2003-08-121-1/+1
|
* Added cross-references to related material on exceptions.Fred Drake2002-10-181-9/+13
| | | | | | | Closes SF bug #217195. Make sure section numbers wrap together with the preceeding word ("section").
* Change reference to execframes to naming.Jeremy Hylton2002-04-011-1/+1
|
* Update programmer's note on nested functions.Jeremy Hylton2002-04-011-5/+5
|
* Revise the markup related to the grammar productions to increase theFred Drake2002-03-151-17/+21
| | | | | | level of predictability. This is not really "good" markup, but is arguably better than we had before. This closes SF bug #523117.
* Typo: thsi -> this. Closes SF bug #521450.Fred Drake2002-02-221-1/+1
|
* Added some missing index entries, noted by L. Peter Deutsch.Fred Drake2001-12-271-0/+2
| | | | This should be included in Python 2.2.1.
* Use the \note and \warning macros where appropriate.Fred Drake2001-10-201-2/+2
|
* Change the grammar productions to use the new productionlist environment;Fred Drake2001-07-061-43/+68
| | | | | this supports a hyperlinked version of the grammar that can make tracking down details and definitions a little easier.
* Fix minor markup nits.Fred Drake2001-06-231-5/+1
|
* Fix a very minor (but annoying when looking for things!) markup nit.Fred Drake2001-06-231-0/+6
|
* Fix typo reported by David Goodger. This closes SF patch #422383.Fred Drake2001-05-101-1/+1
|
* Add nested scopes spec to appendix.Jeremy Hylton2001-03-231-17/+3
| | | | | | | | | | | Add new opcodes LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE to docs for dis module. Add docs for new function and code members in Sec. 3 of ref manual. They're present regardless of whether nested scopes are used. Remove description of default argument hack from Sec. 7 of the ref manual and refer the reader to the appendix.
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-011-9/+11
| | | | SF patch 102989 by Thomas Wouters
* Improve description of else clause of the try/except/else statement.Fred Drake2001-01-021-6/+11
| | | | This closes (again!) bug #127098.
* Change documentation of 'else' clause of 'try/except' to make clear that itThomas Wouters2000-12-311-3/+5
| | | | | | | | doesn't get triggered by 'return', 'break' or 'continue'. If the 'try-inside-continue' patch does not get accepted before next release, the 'or continue' should be removed ;P Closes SF patch #103045 and SF bug #127098.
* More of Rob W. W. Hooft's spelling fixes. The only ones left now are theThomas Wouters2000-07-161-1/+1
| | | | | | | | | | | distutils patches, which I'll leave to the distutils maintainers. Tip: review the patch like this: grep "^[\!+-] " <patchfile> To get a quick and easy way to review the actual changes. Most of the changes are single-line ones, anyway.
* Merged changes from the 1.5.2p2 release.Fred Drake2000-04-031-3/+1
|
* Added sentence "All exceptions must have an executable block."; fromFred Drake1999-08-241-1/+2
| | | | Dan Wolfe <wolfeman@apple.com>.
* Fixed latex2html weirdness with footnotes.Fred Drake1999-04-051-3/+3
|
* Minor markup nits.Fred Drake1999-02-121-14/+10
|
* Clarify evaluation of default arguments at def time with more text andGuido van Rossum1998-12-041-2/+20
| | | | an example.
* Minor fixups to some index entries.Fred Drake1998-11-251-3/+4
|
* Make sure all chapters, sections, and subsections have a \label to give themFred Drake1998-07-281-7/+7
| | | | semantic file names in the HTML. No more node#.html files!
* Changes copied from the FrameMaker version. Not too much.Guido van Rossum1998-07-241-108/+112
|
* Updated markup style (got rid of \verb@...@, mostly).Fred Drake1998-05-141-61/+63
|
* The Python Reference Manual.Fred Drake1998-05-061-0/+391
|