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.

作者 serhiy.storchaka
收信人 Arfrever, alex, barry, docs@python, eric.snow, mark.dickinson, mjacob, ncoghlan, python-dev, serhiy.storchaka, vstinner
日期 2019-06-02.11:11:49
SpamBayes Score -1.0
Marked as misclassified
Message-id <1559473909.82.0.673703627215.issue17576@roundup.psfhosted.org>
In-reply-to
内容
I am not sure that raising an error is the best option. We can just convert an integer subclass to an exact int using _PyLong_Copy().

I am not sure that converting to an exact int in low-level C API functions is the best option. In many cases we use only the content of the resulting object ignoring its type (when convert it to the C integer or float, to bytes array, to new instance of int subclass). Creating a new exact int is a waste of time.

This is why I withdrawn my patches and this issue is still open.
历史
日期 用户 动作 参数
2019-06-02 11:11:49serhiy.storchaka修改recipients: + serhiy.storchaka, barry, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, python-dev, eric.snow, mjacob
2019-06-02 11:11:49serhiy.storchaka修改messageid: <1559473909.82.0.673703627215.issue17576@roundup.psfhosted.org>
2019-06-02 11:11:49serhiy.storchaka链接issue17576 messages
2019-06-02 11:11:49serhiy.storchaka创建