]> granicus.if.org Git - python/commitdiff
Restore Py2.x version of sample call to super().
authorRaymond Hettinger <python@rcn.com>
Wed, 25 Feb 2009 00:39:47 +0000 (00:39 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 25 Feb 2009 00:39:47 +0000 (00:39 +0000)
Doc/library/collections.rst
Doc/library/functions.rst

index ab9d50543a812c5d6936afa44e2d072ea07f60e3..2f7785e81dbaafe1f8cdc55ca302d55e0d3753ef 100644 (file)
@@ -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)
index 96636f4a94bc470671af0c71456f36745410ebfd..795d63e27d0666578eab35928ce9d6bb451c9756 100644 (file)
@@ -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)``.