mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-44651: delete entry of "coercion" in Doc/glossary.rst (GH-27226)
bpo 44651: delete entry of "coercion".
This commit is contained in:
parent
c0f2fcf9bb
commit
c05a790693
2 changed files with 1 additions and 10 deletions
|
@ -216,16 +216,6 @@ Glossary
|
||||||
A variable defined in a class and intended to be modified only at
|
A variable defined in a class and intended to be modified only at
|
||||||
class level (i.e., not in an instance of the class).
|
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
|
complex number
|
||||||
An extension of the familiar real number system in which all numbers are
|
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
|
expressed as a sum of a real part and an imaginary part. Imaginary
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Delete entry "coercion" in Doc/glossary.rst for its outdated definition.
|
Loading…
Add table
Add a link
Reference in a new issue