summaryrefslogtreecommitdiffstats
path: root/Doc/ref
Commit message (Collapse)AuthorAgeFilesLines
* Delete the LaTeX doc tree.Georg Brandl2007-08-1510-6312/+0
|
* Patch #1686487: you can now pass any mapping after '**' in function calls.Georg Brandl2007-05-211-1/+1
|
* Patch #1489771: update syntax rules in Python Reference Manual.Žiga Seilnacht2007-03-244-42/+190
| | | | | | | | 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. Will backport.
* Whitespace cleanup. Also remove the empty linesŽiga Seilnacht2007-03-161-41/+38
| | | | from the previous check in.
* Patch #1623563: allow __class__ assignment for classes with __slots__.Žiga Seilnacht2007-03-161-0/+8
| | | | | The old and the new class are still required to have the same slot names, but the order in which they are specified is not relevant.
* Patch #1602128: clarify that richcmp methods can return NotImplementedGeorg Brandl2007-03-061-7/+9
| | | | and should return True or False otherwise.
* No more raising of string exceptions!Brett Cannon2007-01-301-4/+0
| | | | | | | The next step of PEP 352 (for 2.6) causes raising a string exception to trigger a TypeError. Trying to catch a string exception raises a DeprecationWarning. References to string exceptions has been removed from the docs since they are now just an error.
* Bug #1637967: missing //= operator in list.Georg Brandl2007-01-171-2/+2
|
* Bug #1565919: document set types in the Language Reference.Georg Brandl2006-10-121-0/+35
|
* SF #1547931, fix typo (missing and). Will backport to 2.5Neal Norwitz2006-09-021-1/+1
|
* __hash__ may now return long int; the final hashMartin v. Löwis2006-08-091-0/+5
| | | | | value is obtained by invoking hash on the long int. Fixes #1536021.
* Bug #1536660: separate two words.Georg Brandl2006-08-081-1/+1
|
* Bug #1531349: right <-> left glitch in __rop__ description.Georg Brandl2006-07-301-1/+1
|
* Clarify that __op__ methods must return NotImplemented if they don't support ↵Georg Brandl2006-07-301-0/+3
| | | | the operation.
* remove unnecessary markupFred Drake2006-06-181-1/+1
|
* markup fixGeorge Yoshida2006-06-171-1/+1
|
* Bug #1153163: describe __add__ vs __radd__ behavior when addingGeorg Brandl2006-06-141-4/+19
| | | | objects of same type/of subclasses of the other.
* Bug #1501122: mention __gt__ &co in description of comparison order.Georg Brandl2006-06-141-2/+6
|
* SF patch #1303595: improve description of __builtins__, explaining how itFred Drake2006-06-101-4/+14
| | | | | varies between __main__ and other modules, and strongly suggest not touching it but using __builtin__ if absolutely necessary
* End of Ch.3 is now about "with statement".George Yoshida2006-05-271-3/+3
| | | | Avoid obsolescence by directly referring to the section.
* minor markup nitsGeorge Yoshida2006-05-272-4/+5
|
* Patch #1492218: document None being a constant.Georg Brandl2006-05-261-7/+9
|
* Fix the TeX compile error.George Yoshida2006-05-211-1/+1
|
* - Add 'as' and 'with' as new keywords in 2.5.George Yoshida2006-05-201-9/+13
| | | | - Regenerate keyword lists with reswords.py.
* - markup fixGeorge Yoshida2006-05-202-4/+5
| | | | - add clarifying words
* 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-032-11/+8
| | | | 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()
* one more place to avoid extra markupFred Drake2006-05-031-1/+1
|
* avoid ugly markup based on the unfortunate conversions of ">>" and "<<" toFred Drake2006-05-033-7/+7
| | | | guillemets; no need for magic here
* Get rid of __context__, per the latest changes to PEP 343 and python-devGuido van Rossum2006-05-022-24/+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-302-5/+5
|
* 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
|