
5 Sep
2020
5 Sep
'20
3:45 a.m.
On Sat, Sep 5, 2020 at 8:12 AM Cade Brown brown.cade@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