Message397597
In Doc/glossary.rst, the definition about "coercion" is as below:
"The implicit conversion of an instance of one type to another during an operation which involves two arguments of the same type."
However, in the example following this definition, it shows the arguments of "different" type in an adding operation, and one of them was converted to `float` for the operation.
Therefore, we should fix the definition of the coercion to as below:
"The implicit conversion of an instance of one type to another during an operation which involves two arguments of the different type."
Or am I realize this sentence wrong?
Thanks for review.
https://github.com/python/cpython/blob/main/Doc/glossary.rst |
|
Date |
User |
Action |
Args |
2021-07-16 05:11:26 | StevenHsuYL | set | recipients:
+ StevenHsuYL, docs@python |
2021-07-16 05:11:26 | StevenHsuYL | set | messageid: <1626412286.45.0.614621510926.issue44651@roundup.psfhosted.org> |
2021-07-16 05:11:26 | StevenHsuYL | link | issue44651 messages |
2021-07-16 05:11:26 | StevenHsuYL | create | |
|