diff options
author | Steven Hsu <hsuhaochun@gmail.com> | 2021-07-22 12:18:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 12:18:07 (GMT) |
commit | c05a790693b3b00ac7cb5b96ad416ca9d8ecb14a (patch) | |
tree | 4a8f28559a8ca8e3b38d6a3b872a95a31f40c73a | |
parent | c0f2fcf9bb033486c7a011e5f4139aca0a1eac67 (diff) | |
download | cpython-c05a790693b3b00ac7cb5b96ad416ca9d8ecb14a.zip cpython-c05a790693b3b00ac7cb5b96ad416ca9d8ecb14a.tar.gz cpython-c05a790693b3b00ac7cb5b96ad416ca9d8ecb14a.tar.bz2 |
bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)
bpo 44651: delete entry of "coercion".
-rw-r--r-- | Doc/glossary.rst | 10 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst | 1 |
2 files changed, 1 insertions, 10 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index afb5da4..ff3785b 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -216,16 +216,6 @@ Glossary A variable defined in a class and intended to be modified only at class level (i.e., not in an instance of the class). - coercion - The implicit conversion of an instance of one type to another during an - operation which involves two arguments of the same type. For example, - ``int(3.15)`` converts the floating point number to the integer ``3``, but - in ``3+4.5``, each argument is of a different type (one int, one float), - and both must be converted to the same type before they can be added or it - will raise a :exc:`TypeError`. Without coercion, all arguments of even - compatible types would have to be normalized to the same value by the - programmer, e.g., ``float(3)+4.5`` rather than just ``3+4.5``. - complex number An extension of the familiar real number system in which all numbers are expressed as a sum of a real part and an imaginary part. Imaginary diff --git a/Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst b/Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst new file mode 100644 index 0000000..20796e2 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst @@ -0,0 +1 @@ +Delete entry "coercion" in Doc/glossary.rst for its outdated definition. |