summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2016-02-08 17:59:14 (GMT)
committerGregory P. Smith <greg@krypto.org>2016-02-08 17:59:14 (GMT)
commit3b5d61fa6c0af7c1a09d15a7d2fb42dcc9e7bede (patch)
treeebb6fabcf05dff63e4b315c5f4d945de6b606b13 /Doc
parentdb28718ebe03f618394bf0319d9647b1f3467aa3 (diff)
downloadcpython-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.rst3
-rw-r--r--Doc/library/stdtypes.rst2
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