Skip to content

Commit c05a790

Browse files
authored
bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)
bpo 44651: delete entry of "coercion".
1 parent c0f2fcf commit c05a790

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Doc/glossary.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,6 @@ Glossary
216216
A variable defined in a class and intended to be modified only at
217217
class level (i.e., not in an instance of the class).
218218

219-
coercion
220-
The implicit conversion of an instance of one type to another during an
221-
operation which involves two arguments of the same type. For example,
222-
``int(3.15)`` converts the floating point number to the integer ``3``, but
223-
in ``3+4.5``, each argument is of a different type (one int, one float),
224-
and both must be converted to the same type before they can be added or it
225-
will raise a :exc:`TypeError`. Without coercion, all arguments of even
226-
compatible types would have to be normalized to the same value by the
227-
programmer, e.g., ``float(3)+4.5`` rather than just ``3+4.5``.
228-
229219
complex number
230220
An extension of the familiar real number system in which all numbers are
231221
expressed as a sum of a real part and an imaginary part. Imaginary
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Delete entry "coercion" in Doc/glossary.rst for its outdated definition.

0 commit comments

Comments
 (0)