> 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.

-CHB
-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
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/7YPEX57I2TB37NLGFXVLABRKO3SKXQ23/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to