summaryrefslogtreecommitdiffstats
path: root/Doc/ref/ref3.tex
Commit message (Collapse)AuthorAgeFilesLines
* Update information about __del__() & reference cycles for CPython.Fred Drake2001-12-141-7/+18
| | | | | | | This partially fixes SF bug #492619. Fix a typo & use the new notice environment instead of (ab)using the \note and \warning macros.
* Document generators and the yield statement, avoiding implementation details.Fred Drake2001-12-111-1/+13
|
* Add change notes where im_class is discussed, since the exact meaning changesFred Drake2001-12-071-0/+2
| | | | with Python 2.2.
* Correct the description of im_class. (Fred, this is changed in 2.2.Guido van Rossum2001-12-071-6/+5
| | | | Should this be labeled as changed? How?)
* Remove most references to __members__ and __methods__, leaving only one pairFred Drake2001-12-031-8/+1
| | | | | | of references that now state that these attributes have been removed, directing the reader to the dir() function. This closes SF bug #456420.
* Clean up some markup cruft. A number of the macros that take noFred Drake2001-11-281-3/+3
| | | | | | | | parameters (like \UNIX) are commonly entered using an empty group to separate the markup from a following inter-word space; this is not needed when the next character is punctuation, or the markup is the last thing in the enclosing group. These cases were marked inconsistently; the empty group is now *only* used when needed.
* Use the \note and \warning macros where appropriate.Fred Drake2001-10-201-4/+4
|
* Refer to the objects which define __len__(), __*item__(), and __iter__()Fred Drake2001-10-011-17/+35
| | | | | | as container objects rather than as mapping objects (in the index entries). Change the section heading and intro sentence to be a little more general, since that's how things have actually evolved.
* Fix minor usage and consistency nits.Fred Drake2001-09-181-4/+5
|
* Work around a LaTeX2HTML bug that caused the "m" in "mutable" to be droppedFred Drake2001-09-101-1/+1
| | | | in one place.
* Add information about __floordiv__() and __truediv__() methods forFred Drake2001-08-141-5/+17
| | | | implementing numeric objects in Python.
* User-defined methods *can* contain things other than user-defined functionsFred Drake2001-08-021-1/+2
| | | | as the callable, so use more flexible language.
* Explain that __init__() methods do not get to return values.Fred Drake2001-08-021-8/+9
|
* Minor change to match the style guide.Fred Drake2001-07-141-1/+1
|
* Fix a very minor (but annoying when looking for things!) markup nit.Fred Drake2001-06-231-0/+2
|
* Bring the notes on the relationship between __cmp__(), __eq__(), andFred Drake2001-05-291-10/+15
| | | | | | | __hash__() up to date (re: use of objects which define these methods as dictionary keys). This closes SF bug #427698.
* Make sure we include all of Python's numeric types in the data modelFred Drake2001-05-141-1/+2
| | | | | | description, so that the introduction of complex is not a surprise. This closes SF bug #423429.
* Implement, test and document "key in dict" and "key not in dict".Guido van Rossum2001-04-201-3/+8
| | | | | | | | | I know some people don't like this -- if it's really controversial, I'll take it out again. (If it's only Alex Martelli who doesn't like it, that doesn't count as "real controversial" though. :-) That's why this is a separate checkin from the iterators stuff I'm about to check in next.
* Work around the conversion of ">>" and "<<" to guillemets. Reported by Ping.Fred Drake2001-04-131-51/+56
| | | | Wrap some long lines and fix some markup nits.
* Add nested scopes spec to appendix.Jeremy Hylton2001-03-231-12/+29
| | | | | | | | | | | 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.
* Updates to describe function attributes.Barry Warsaw2001-02-271-4/+12
|
* Sequence indexes are non-negative, not natural (0 is not a natural number).Fred Drake2001-02-221-32/+32
| | | | | | Reported by Daniel May <mayds@ecn.purdue.edu>. De-tabified everywhere.
* Updated note about collection of cyclic garbage, based on comments fromFred Drake2001-01-221-3/+6
| | | | Chris Ryland.
* Document rich comparisons.Guido van Rossum2001-01-181-5/+42
|
* __rcmp__() description: Changed to indicate that this is no longerFred Drake2001-01-041-8/+1
| | | | | | | | supported as of Python 2.1. We still need to have an entry for this since it is reasonable for users to want to understand existing code. This closes SF bug #122715.
* Document the NotImplemented object.Neil Schemenauer2001-01-041-0/+9
|
* Fix typoAndrew M. Kuchling2000-12-191-1/+1
|
* Clarify __repr__ and __str__.Guido van Rossum2000-12-191-7/+10
|
* Additional docs for __iadd__ and family, closing SF bug #117178 and SF patchThomas Wouters2000-12-111-0/+26
| | | | #102169.
* Added a note that objects which emulate built-in types should onlyFred Drake2000-12-071-0/+7
| | | | | implement as many of the relevant methods as make sense for the particular information being modelled.
* Denis S. Otkidach <ods@users.sourceforge.net>:Fred Drake2000-09-211-0/+42
| | | | | | | | | | Show how code can be written to handle __getslice__ & friends in a way that is compatible with pre-2.0 versions of Python while still working with the "new" way of handling slicing. Additional explanation added by Fred Drake. This closes SourceForge patch #101388.
* Note that __getitem__() may receive a slice object as the index;Fred Drake2000-09-211-2/+3
| | | | reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
* Moshe Zadka <mzadka@geocities.com>:Fred Drake2000-09-191-0/+10
| | | | | | | Document the __contains__() method. (Patch slightly modified by FLD.) This closes SourceForge patch #101387.
* Rough and incomplete documentation on augmented assignment, which followsThomas Wouters2000-08-241-4/+7
| | | | shortly. Markup also needs checking.
* Adjust the way __getslice__() is marked as deprecated; this will alsoFred Drake2000-08-181-2/+4
| | | | stand out more.
* Apply SF patch #101029: call __getitem__ with a proper slice object if thereThomas Wouters2000-08-171-9/+18
| | | | | | | | is no __getslice__ available. Also does the same for C extension types. Includes rudimentary documentation (it could use a cross reference to the section on slice objects, I couldn't figure out how to do that) and a test suite for all Python __hooks__ I could think of, including the new behaviour.
* More of Rob W. W. Hooft's spelling fixes. The only ones left now are theThomas Wouters2000-07-161-5/+5
| | | | | | | | | | | 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.
* Improve the descriptions of expected exceptions for __getitem__(),Fred Drake2000-07-131-4/+14
| | | | | __setitem__(), and __delitem__(). Based on related comments from Barry Warsaw.
* Revise the description of when functions retrieved from class instancesFred Drake2000-06-281-9/+11
| | | | | | | | | are and are not turned into bound methods; some confusion was noted by Andrew Dalke. In particular, it has to be noted that functions located on the class instance are not turned into any sort of method, only those which are found via the underlying class.
* Fix markup error that hid a tilde character; reported long ago byFred Drake2000-06-151-1/+12
| | | | Carl Feynman <carlf@abinitio.com>.
* But don't do the funny \UNICODE macro; we're trying to get away fromFred Drake2000-04-061-1/+1
| | | | those markups! <with-mixed-feelings>
* Patch from Marc-Andre Lemburg <mal@lemburg.com>:Fred Drake2000-04-061-0/+15
| | | | Added Unicode type to the language reference.
* Merged changes from the 1.5.2p2 release.Fred Drake2000-04-031-17/+18
|
* Use \citetitle as appropriate.Fred Drake1999-11-101-18/+15
|
* Fixed some index entries.Fred Drake1999-05-101-36/+36
| | | | | | In the __coerce__ description, None should be returned if the conversion is *impossible*, not *possible*. Reported by Robert Kern <kernr@ncifcrf.gov>.
* Dictionaries are created using the "{...}" notation, not the "..."Fred Drake1999-02-231-13/+11
| | | | notation. Problem reported by Magnus L. Hetland <mlh@idt.ntnu.no>.
* 1. Clarify that immutability isn't entirely the same as unchangeableGuido van Rossum1999-02-231-2/+12
| | | | | | | value (because of immutable containers containing mutable objects). 2. Document that func_code, func_defaults and func_doc / __doc__ are now writable.
* Documented __complex__(), made sure all the discipline names hit theFred Drake1999-02-121-5/+8
| | | | index.
* "numberic" --> "numeric", two placesFred Drake1999-01-281-2/+2
|
* Removed a lot of unnecessary comment markers which cause unexplainedFred Drake1999-01-121-84/+83
| | | | numbers to appear in the HTML version of the manual.