On Wed, Feb 5, 2020 at 5:14 AM Christopher Barker <python...@gmail.com> wrote:
>
> > A statement like print("bar", foo.bar) would be very hard to notice that
>>
>> the "bar" match the foo.bar, while
>>
>> print(nameof(foo.bar), foo.bar) makes the connection explicit.
>
>
> Isn’t someone working on a “debug string” PEP that would mitigate this?
>
> Maybe not a full PEP:
>
> https://bugs.python.org/issue36774
> And
> https://bugs.python.org/issue36817
>
> I can’t quit tell where that is at — but it seems it may well address this 
> problem.
>

Landed.

>>> f"{3+.9=}"
'3+.9=3.9'

But it's insufficient in itself for the OP's use-case.

ChrisA
_______________________________________________
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/4EYQCN75FLZ23A2JMVOUDZKVVP33VSN2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to