[Python-Dev] PEP 682: Format Specifier for Signed Zero

2022-02-14 Thread John Belmonte
Just a note that this PEP is being discussed at

  https://discuss.python.org/t/pep-682-format-specifier-for-signed-zero

TLDR; When formatting a number (especially with rounding options), often
you don't want negative-signed zero as an output.  A format spec extension
enables normalizing such values to positive zero.

Regards,
--John Belmonte
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/HI6IXJK7NA44IYJXYSFVXPZLQMTC3M6A/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-07-11 Thread John Belmonte
On 1/18/22 10:43 AM, Mats Wichmann wrote:

> A thought - how about omitting the underline line if the
> to-be-underlined part would be the whole line?

I wasn't aware of this thread, but that's exactly what I implemented for
3.11.0b4.

About this thread-- I understand debating solutions, but there was at least
an agreement here about the problem.  For visibility, it would have been
better to open an issue than let the topic drop.  (When filing the issue, I
was wondering "how can I be alone thinking this is a problem?"-- then was
surprised to see the support come out for the change.)

Regards,
--John
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/QPBESYL43T2ZVWLM7JI4UQD7VEGL3A55/
Code of Conduct: http://python.org/psf/codeofconduct/