From ec792f7cd17c410087e7d07f27761511416f1466 Mon Sep 17 00:00:00 2001 From: Steven Hsu <81967953+StevenHsuYL@users.noreply.github.com> Date: Sun, 18 Jul 2021 20:58:07 +0800 Subject: [PATCH 1/2] Update Doc/glossary.rst bpo 44651: delete entry of "coercion". --- Doc/glossary.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 29c68ed72c6d70..2d12b16d6274ff 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 From 6a6d5202ec8bf593d052a27db9f95c5450eccbdf Mon Sep 17 00:00:00 2001 From: Steven Hsu <81967953+StevenHsuYL@users.noreply.github.com> Date: Sun, 18 Jul 2021 22:34:48 +0800 Subject: [PATCH 2/2] Create news entry. news entry for bpo-44651 --- .../next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Documentation/2021-07-18-22-26-02.bpo-44651.SjT9iY.rst 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 00000000000000..20796e2a9bb693 --- /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.