]> granicus.if.org Git - python/commitdiff
Clarify "cardinality of" as "number of elements in" as many readers do
authorGregory P. Smith <greg@krypto.org>
Mon, 8 Feb 2016 17:59:14 +0000 (09:59 -0800)
committerGregory P. Smith <greg@krypto.org>
Mon, 8 Feb 2016 17:59:14 +0000 (09:59 -0800)
not have a math vocabulary.

Doc/library/sets.rst
Doc/library/stdtypes.rst

index 7bd29311402a508918f348762ff9e7636ccdbf78..a7ae3abdbe37e84cbc545218e6cebf273366032e 100644 (file)
@@ -76,7 +76,8 @@ operations:
 +-------------------------------+------------+---------------------------------+
 | Operation                     | Equivalent | Result                          |
 +===============================+============+=================================+
-| ``len(s)``                    |            | cardinality of set *s*          |
+| ``len(s)``                    |            | number of elements in set *s*
+|                               |            | (cardinality)                   |
 +-------------------------------+------------+---------------------------------+
 | ``x in s``                    |            | test *x* for membership in *s*  |
 +-------------------------------+------------+---------------------------------+
index fb9140d6c52dc83be9bc1e1e1f7248a102011704..91d89f15ed63da013ca571982f080b9332488cb8 100644 (file)
@@ -1779,7 +1779,7 @@ The constructors for both classes work the same:
 
    .. describe:: len(s)
 
-      Return the cardinality of set *s*.
+      Return the number of elements in set *s* (cardinality of *s*).
 
    .. describe:: x in s