
On Fri, Sep 11, 2020 at 12:09 AM Random832 random832@fastmail.com wrote:
On Fri, Sep 4, 2020, at 12:45, Cade Brown wrote:
I am positing that Python should contain a constant (similar to True, False, None), called Infinity.
What if we created a new syntax [and used it for the repr] that is not currently a valid identifier?
something like "1.INF"
if we were starting from scratch, that would be a good idea, but as the repr has been consistent for quite some timem I dont think we want to change it. And we do want teh names to match the repr
And I'd maybe go with .INF. :-)
Another point is that these are not going to be singletons, like True, False and None -- they are just floats that happen to have particular values.
-CHB
Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@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/BN5ZRN... Code of Conduct: http://python.org/psf/codeofconduct/