diff options
| author | Raymond Hettinger <python@rcn.com> | 2009-02-25 00:39:47 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2009-02-25 00:39:47 (GMT) |
| commit | eb7cbb94c52a2413ff3a68aa29aedfdc8429838a (patch) | |
| tree | f0b04e74d6edc43708db63872a818111c82f16af | |
| parent | 9766033b7c4cc0e18972594988083c87dec04c48 (diff) | |
| download | cpython-eb7cbb94c52a2413ff3a68aa29aedfdc8429838a.zip cpython-eb7cbb94c52a2413ff3a68aa29aedfdc8429838a.tar.gz cpython-eb7cbb94c52a2413ff3a68aa29aedfdc8429838a.tar.bz2 | |
Restore Py2.x version of sample call to super().
| -rw-r--r-- | Doc/library/collections.rst | 11 | ||||
| -rw-r--r-- | Doc/library/functions.rst | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index ab9d505..2f7785e 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -252,11 +252,12 @@ Common patterns for working with :class:`Counter` objects:: c += Counter() # remove zero and negative counts Several multiset mathematical operations are provided for combining -:class:`Counter` objects. Multisets are like regular sets but are allowed to -contain repeated elements (with counts of one or more). Addition and -subtraction combine counters by adding or subtracting the counts of -corresponding elements. Intersection and union return the minimum and maximum -of corresponding counts. Each operation can accept inputs with signed counts, +:class:`Counter` objects. Multisets are counters with the restriction +that all counts are at least one. They are like regular sets but are +allowed to contain repeated elements. Addition and subtraction combine +counters by adding or subtracting the counts of corresponding elements. +Intersection and union return the minimum and maximum of corresponding +counts. Each operation can accept inputs with signed counts, but the output excludes results with counts less than one. >>> c = Counter(a=3, b=1) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 96636f4..795d63e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1229,7 +1229,7 @@ available. They are listed here in alphabetical order. class C(B): def method(self, arg): - super().method(arg) # This does the same thing as: super(C, self).method(arg) + super(C, self).method(arg) Note that :func:`super` is implemented as part of the binding process for explicit dotted attribute lookups such as ``super().__getitem__(name)``. |
