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 rhettinger
Recipients Arfrever, alex, barry, brett.cannon, docs@python, eric.snow, ethan.furman, mark.dickinson, mjacob, ncoghlan, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2021-08-30.22:08:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630361311.7.0.68495423768.issue17576@roundup.psfhosted.org>
In-reply-to
Content
> 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'))))
History
Date User Action Args
2021-08-30 22:08:31rhettingersetrecipients: + 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:31rhettingersetmessageid: <1630361311.7.0.68495423768.issue17576@roundup.psfhosted.org>
2021-08-30 22:08:31rhettingerlinkissue17576 messages
2021-08-30 22:08:31rhettingercreate