New submission from Steven Hsu <hsuhaoc...@gmail.com>:

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

----------
assignee: docs@python
components: Documentation
messages: 397597
nosy: StevenHsuYL, docs@python
priority: normal
severity: normal
status: open
title: An unclear definition in Doc/glossary.rst
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44651>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to