On Sat, Sep 5, 2020 at 8:12 AM Cade Brown <brown.c...@gmail.com> wrote: > > I mentioned that in my post; however it doesn't satisfy the problems I have > (mainly being that eval(repr(x))==x) > > I still think unifying it as a constant is better because then the repr of a > float gives a string which, if evaluated, gives the float back exactly. Using > math.inf or string conversion throws an error if you try to evaluate it >
Remember that if this matters to you, you can "from math import inf". So your proposal is to, in effect, do this by default. I'm -0 on it because it's so easy to do if you want it. ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JUWHTO5J4AJWPFMH7HTNRMHNAX5HCLER/ Code of Conduct: http://python.org/psf/codeofconduct/