Message188310
| Author |
serhiy.storchaka |
| Recipients |
brian.curtin, docs@python, kyle.roberts, r.david.murray, serhiy.storchaka, vstinner |
| Date |
2013年05月03日.17:24:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367601862.28.0.345548190036.issue15984@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In other languages usually the world "coercion" is used for implicit conversion, i.e. int->long, int->float, float->complex. str->unicode in Python 2 (that's what PyUnicode_FromObject() does). But the last conversion is not supported in Python 3. The term "coercion" has also been used in Python 2 in the narrow sense (see the __coerce__() method), and in this sense Python 3 does not support "coercion". Therefore, I believe that it is better to avoid the use of this term. |
|