diff options
author | Gregory P. Smith <greg@krypto.org> | 2016-02-08 17:59:14 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2016-02-08 17:59:14 (GMT) |
commit | 3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede (patch) | |
tree | ebb6fabcf05dff63e4b315c5f4d945de6b606b13 /Doc | |
parent | db28718ebe03f618394bf0319d9647b1f3467aa3 (diff) | |
download | cpython-3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede.zip cpython-3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede.tar.gz cpython-3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede.tar.bz2 |
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sets.rst | 3 | ||||
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/sets.rst b/Doc/library/sets.rst index 7bd2931..a7ae3ab 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 fb9140d6..91d89f1 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 |