[Python-checkins] r69953 - in python/trunk/Doc/library: collections.rst functions.rst

raymond.hettinger python-checkins at python.org
Wed Feb 25 01:39:47 CET 2009


Author: raymond.hettinger
Date: Wed Feb 25 01:39:47 2009
New Revision: 69953
Log:
Restore Py2.x version of sample call to super().
Modified:
 python/trunk/Doc/library/collections.rst
 python/trunk/Doc/library/functions.rst
Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst	(original)
+++ python/trunk/Doc/library/collections.rst	Wed Feb 25 01:39:47 2009
@@ -252,11 +252,12 @@
 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)
Modified: python/trunk/Doc/library/functions.rst
==============================================================================
--- python/trunk/Doc/library/functions.rst	(original)
+++ python/trunk/Doc/library/functions.rst	Wed Feb 25 01:39:47 2009
@@ -1229,7 +1229,7 @@
 
 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)``.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /