]> 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:58:40 +0000 (09:58 -0800)
committerGregory P. Smith <greg@krypto.org>
Mon, 8 Feb 2016 17:58:40 +0000 (09:58 -0800)
not have a math vocabulary.

Doc/library/stdtypes.rst

index 774b0c6230a5d82ffb62864dd8e6afb33ae2ab4c..e491fd26daa1984123553eae194d927ee2706bfd 100644 (file)
@@ -3828,7 +3828,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