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.

作者 rhettinger
收信人 Arfrever, alex, barry, brett.cannon, docs@python, eric.snow, ethan.furman, mark.dickinson, mjacob, ncoghlan, python-dev, rhettinger, serhiy.storchaka, vstinner
日期 2021-08-30.22:08:31
SpamBayes Score -1.0
Marked as misclassified
Message-id <1630361311.7.0.68495423768.issue17576@roundup.psfhosted.org>
In-reply-to
内容
> So I really *do* want to see the ability of __float__ 
> to return a non-float eventually removed.

Note, the __str__ method on strings does not require an exact str.

    class S:
        def __str__(self):
            return self

    print(type(str(S('hello world'))))
历史
日期 用户 动作 参数
2021-08-30 22:08:31rhettinger修改recipients: + rhettinger, barry, brett.cannon, mark.dickinson, ncoghlan, vstinner, Arfrever, alex, docs@python, ethan.furman, python-dev, eric.snow, serhiy.storchaka, mjacob
2021-08-30 22:08:31rhettinger修改messageid: <1630361311.7.0.68495423768.issue17576@roundup.psfhosted.org>
2021-08-30 22:08:31rhettinger链接issue17576 messages
2021-08-30 22:08:31rhettinger创建