On Sat, May 15, 2021, 3:13 PM Oscar Benjamin > That would mean that a simple statement like x = -1.01d could assign > different values depending on the context. Maybe with the new parser it is > easier to change this so that an unary +/- can be part of the literal.
Steven, at least, stated he assumed this decimal literal would be either decimal64 or decimal128. That would remove this exact concern you state. But decimal64 behaves differently that decimal128, and both have different semantics than Decimal. I don't disagree that decimal128 is a useful data type, but it's definitely a wrinkle for various flavors of "decimal" to arise in various ways. For example, how does this change the numeric tower?
_______________________________________________ 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/MVDCIMRSYBFJNQ5DVVQV6BTKW3ZJG6QP/ Code of Conduct: http://python.org/psf/codeofconduct/