On Fri, Sep 11, 2020 at 3:09 AM Random832 <[email protected]> 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"
>

 This is out of the box and might be considered insane, but what about:

>>> INF#
INF#
>>> INF # this is a comment as usual
NameError: INF

But I suppose this would be considered a breaking change, since the text
"INF#" probably exists in code somewhere.

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home
or actually going home." - Happy Chandler
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/VAJC2IEAQ4CHVE24JLZOYPYGIRHSOWGG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to