This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author StevenHsuYL
Recipients StevenHsuYL, docs@python
Date 2021-07-16.05:11:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626412286.45.0.614621510926.issue44651@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-07-16 05:11:26StevenHsuYLsetrecipients: + StevenHsuYL, docs@python
2021-07-16 05:11:26StevenHsuYLsetmessageid: <1626412286.45.0.614621510926.issue44651@roundup.psfhosted.org>
2021-07-16 05:11:26StevenHsuYLlinkissue44651 messages
2021-07-16 05:11:26StevenHsuYLcreate