[Python-checkins] cpython (2.7): Clarify "cardinality of" as "number of elements in" as many readers do
gregory.p.smith
python-checkins at python.org
Mon Feb 8 12:59:30 EST 2016
https://hg.python.org/cpython/rev/11c6bfbab9ce
changeset: 100198:11c6bfbab9ce
branch: 2.7
parent: 100193:f45571c32e0d
user: Gregory P. Smith <greg at krypto.org>
date: Mon Feb 08 09:59:14 2016 -0800
summary:
Clarify "cardinality of" as "number of elements in" as many readers do
not have a math vocabulary.
files:
Doc/library/sets.rst | 3 ++-
Doc/library/stdtypes.rst | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/library/sets.rst b/Doc/library/sets.rst
--- a/Doc/library/sets.rst
+++ b/Doc/library/sets.rst
@@ -76,7 +76,8 @@
+-------------------------------+------------+---------------------------------+
| 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
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1779,7 +1779,7 @@
.. describe:: len(s)
- Return the cardinality of set *s*.
+ Return the number of elements in set *s* (cardinality of *s*).
.. describe:: x in s
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list