From: Gregory P. Smith Date: Mon, 8 Feb 2016 17:59:14 +0000 (-0800) Subject: Clarify "cardinality of" as "number of elements in" as many readers do X-Git-Tag: v2.7.12rc1~239 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede;p=thirdparty%2FPython%2Fcpython.git Clarify "cardinality of" as "number of elements in" as many readers do not have a math vocabulary. --- diff --git a/Doc/library/sets.rst b/Doc/library/sets.rst index 7bd29311402a..a7ae3abdbe37 100644 --- a/Doc/library/sets.rst +++ b/Doc/library/sets.rst @@ -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* | +-------------------------------+------------+---------------------------------+ diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index fb9140d6c52d..91d89f15ed63 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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