4 Feb
2020
4 Feb
'20
8:21 p.m.
On Wed, Feb 5, 2020 at 5:14 AM Christopher Barker
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