summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref3.tex
Commit message (Collapse)AuthorAgeFilesLines
* Move the PEP 343 documentation and implementation closer to theNick Coghlan2006-04-251-24/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-23/+21
| | | | instead of context object
* Update with statement documentation to use same terminology as 2.5a1 ↵Nick Coghlan2006-04-231-20/+32
| | | | implementation
* 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-281-0/+2
|
* Document the PEP 343 context manager protocol methods.Phillip J. Eby2006-03-271-0/+58
|
* 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).
* 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.
* Add placeholder section on old and new-style classesAndrew M. Kuchling2005-12-041-0/+13
|
* add missing "and"Fred Drake2005-10-301-2/+3
|
* Better wording for integer ref entry.Georg Brandl2005-09-121-2/+2
|
* - 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
|
* SF bug #1249837: container methods raise KeyError not IndexErrorRaymond Hettinger2005-08-211-0/+2
| | | | Minor clarification.
* Patch [ 1230615 ] Patch for (Doc) #1168746Georg Brandl2005-07-021-11/+14
| | | | Bug [ 1204734 ] incorrect description of __getattribute__
* Fix typo.Raymond Hettinger2005-04-261-1/+1
|
* SF #1156412: document the __new__() static methodGreg Ward2005-03-081-0/+29
| | | | (merge from release24-maint branch).
* SF Patch #1093896: miscellaneous doc typosRaymond Hettinger2005-01-011-1/+1
|
* This is my patchMichael W. Hudson2004-08-121-22/+49
| | | | | | | [ 1004703 ] Make func_name writable plus fixing a couple of nits in the documentation changes spotted by MvL and a Misc/NEWS entry.
* Add a missing space.Brett Cannon2004-06-291-1/+1
|
* note that descriptor objects must be instances of new-style typesFred Drake2004-05-061-1/+2
| | | | (closes SF bug #817742)
* clean up indexing for None, NotImplementedFred Drake2004-01-011-4/+2
| | | | closes SF bug #820344
* Patch #821093: Fix various typos.Martin v. Löwis2003-10-191-1/+1
|
* SF 810242. Fix doubled word errors.Raymond Hettinger2003-09-221-1/+1
|
* Added doubled word warnings.Raymond Hettinger2003-08-251-1/+1
|
* Fix representation of ^= operator in __ixor__() documentation.Fred Drake2003-07-231-1/+1
| | | | Closes SF bug #776181. Should be backported.
* Minor corrections.Raymond Hettinger2003-07-171-1/+1
|
* - improve the description of how user-defined methodFred Drake2003-07-171-25/+85
| | | | | | | | objects get made - improve the description of attribute retrieval from classes and class instances - add brief documentation of static method and class method objects.
* Clarify the lack of relationship between rich comparison operators.Raymond Hettinger2003-07-161-0/+5
| | | | Prompted by a discussion on comp.lang.python.
* Indexing is a mess; try to get the link targets closer to the relevantFred Drake2003-07-151-3/+2
| | | | text. There needs to be a better way.
* Discuss calling new-style types.Fred Drake2003-07-151-1/+9
| | | | Closes SF bug #453683.
* Minor fixes to punctuation and grammar.Raymond Hettinger2003-06-291-5/+5
|
* * Markup nits for the Invoking Descriptors sectionRaymond Hettinger2003-06-271-7/+121
| | | | | | | * Documented __slots__ * Documented __metaclass__ Shamelessly plagarized from Guido's tutorial.
* remove _ from label: LaTeX rejects this due to all the magic we use toFred Drake2003-06-261-1/+1
| | | | get the _ character to format like a normal character
* * Document how descriptors are invoked.Raymond Hettinger2003-06-251-3/+63
| | | | * Fix minor parenthesis matching errors in ref3.tex.
* Add explicit text for where an obindex call for generators was since obindex ↵Brett Cannon2003-06-151-1/+2
| | | | does not cause output of its argument.
* Add a specific mention of the term "operator overloading" and add anFred Drake2003-05-121-1/+4
| | | | index entry. Suggested to python-docs.
* - apply SF patch #700798: fixes and cleanups for descriptor infoFred Drake2003-03-201-13/+13
| | | | - use a TeX "tie" to prevent word-wrapping in "section x.y"-like text
* I thought it was common practice to check things compiled beforeMichael W. Hudson2003-03-051-5/+5
| | | | | | | checking them in? Oh well, this fixes various obvious mistakes and changes a subsubsubsection (which doesn't exist) into a subsubsection (which does). I'm not sure this matches the intent, but it seems to read OK on a quick skim.
* SF doc patch #692001, properties and __getattribute__. I added someGuido van Rossum2003-02-281-8/+54
| | | | stuff, and changed 'property' to 'descriptor'.
* Document __module__.Jeremy Hylton2003-01-311-3/+11
|
* Fix typoRaymond Hettinger2003-01-191-1/+1
|
* SF patch #634866: Alex Martelli's corrections to the ref manual.Raymond Hettinger2003-01-191-37/+75
| | | | | Backport candidate. All but one or two of these changes are applicable to 2.2.2.
* This is Richie Hindle's patchMichael W. Hudson2002-12-171-5/+7
| | | | | | | | [ 643835 ] Set Next Statement for Python debuggers with a few tweaks by me: adding an unsigned or two, mentioning that not all jumps are allowed in the doc for pdb, adding a NEWS item and a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
* Another try at clarifying what goes into and comes out of Unicode objects.Fred Drake2002-09-241-12/+20
| | | | Document the indices() method of slice objects.
* Clarified that the footnote applies to versions 1.5 and after instead ofRaymond Hettinger2002-09-081-4/+4
| | | | just version 1.5. Closes SF bug 577793.