I'll vote: bad. I don't think non-integer representations of fraction attributes should be considered valid when expressing as a literal. On Fri, 2021-05-14 at 14:17 -0400, Ricky Teachey wrote:
On Fri, May 14, 2021 at 2:09 PM Ricky Teachey
wrote: On Fri, May 14, 2021 at 1:14 PM André Roberge
wrote: You can already experiment with this.
Thanks Andre I tried it out and it works great.
Do the appended capital Fs make these numbers look like some kind of hexadecimal representation or is it just me?
Actually it just hit me: I don't know if this will be considered a big difficulty or not, but currently you can write division operations using hexadecimal numbers:
>>> 0xF / 0xF 1.0
And this works in Andre's experimental implementation like so for fractions of hex numbers:
>>> 0xF / 0xF F Fraction(1, 1)
But it looks... funny. I don't know if is is good or bad. It just is.
--- 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 -- 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/JRRIRY... Code of Conduct: http://python.org/psf/codeofconduct/