summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsets.tex
Commit message (Collapse)AuthorAgeFilesLines
* Improvements to set.py:Raymond Hettinger2003-08-171-3/+19
| | | | | | | | | | | | | | | | | | | * Relaxed the argument restrictions for non-operator methods. They now allow any iterable instead of requiring a set. This makes the module a little easier to use and paves the way for an efficient C implementation which can take better advantage of iterable arguments while screening out immutables. * Deprecated Set.update() because it now duplicates Set.union_update() * Adapted the tests and docs to include the above changes. * Added more test coverage including testing identities and checking to make sure non-restartable generators work as arguments. Will backport to Py2.3.1 so that the interface remains consistent across versions. The deprecation of update() will be changed to a FutureWarning.
* Incorporate documentation suggestions from feedback on comp.lang.python.Raymond Hettinger2003-08-161-55/+42
| | | | | | | | | | | | | | | * Positive wording for the description of why < and > and = can all be False. * Move to a three column table format that puts long method names side-by-side with their operator equivalents * Mention that KeyError can be raised by Set.pop() and Set.remove(). * Minor tweaks to the examples. Will backport as soon as Fred rebuilds the docs so I can confirm the tables formatted properly
* SF bug #663701: sets module reviewRaymond Hettinger2003-02-141-4/+4
| | | | Renamed hook methods to use the double underscore convention.
* SF bug #663701. The caret wasn't printing well in the PDF documentation.Raymond Hettinger2003-02-141-1/+1
|
* Document that __cmp__() is not defined for sets.Raymond Hettinger2003-01-151-3/+12
| | | | | Note, that list.sort() is undefined for lists of sets. Add the ... prompt to the example so it runs in doctest.
* Fix some nits Guido brought up last August:Fred Drake2003-01-061-10/+8
| | | | | | - give subsection pages nicer names - shorten some really long table cells; table cells can't wrap in the typeset version of the documentation
* Implemented <, <=, >, >= for sets, giving subset and proper-subsetTim Peters2002-08-251-5/+12
| | | | | | meanings. I did not add new, e.g., ispropersubset() methods; we're going nuts on those, and, e.g., there was no "friendly name" for == either.
* Removed < <= > >= from the API. Implemented as comparisons of theRaymond Hettinger2002-08-241-3/+2
| | | | | | | | underlying dictionaries, there were no reasonable use cases (lexicographic sorting of a list of sets is somewhat esoteric). Frees the operators for other uses (such as strict subset and superset comparisons). Updated documentation and test suite accordingly.
* Fix markup and punctuationRaymond Hettinger2002-08-231-4/+4
|
* s/_as_Temporarily_Immutable/_as_temporarily_immutable/g, because theTim Peters2002-08-231-2/+2
| | | | latter is what the code actually does.
* pop(): An arbitrary element is removed, not a random element.Tim Peters2002-08-231-1/+2
|
* Adjust the markup in a few places so this will actually format.Fred Drake2002-08-231-92/+89
| | | | Remove the third column in the tables since it isn't used.
* Load docs for sets.pyRaymond Hettinger2002-08-231-0/+219