[issue36774] f-strings: Add a !d conversion for ease of debugging

Eric V. Smith report at bugs.python.org
Fri May 3 04:32:46 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

The most recent version of the patch implements the conditional repr/format behavior. I'm pretty happy with it.

Other than docs, I think this is done. I'm going to discuss it with a few more people at PyCon, then commit it.

There's a slight optimization I'm considering (pre-append the '=' to the expression text at compile time, instead of at runtime), but I'll do that later, if ever.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36774>
_______________________________________


More information about the Python-bugs-list mailing list