8000 bpo-44651: delete entry of "coercion" in Doc/glossary.rst by StevenHsuYL · Pull Request #27226 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44651: delete entry of "coercion" in Doc/glossary.rst #27226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Delete entry "coercion" in Doc/glossary.rst for its outdated definition.
0