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

Karthikeyan Singaravelan report at bugs.python.org
Thu May 2 11:18:56 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

!d sounds good and makes teaching easier. Adding additional symbol sort of clutters the experience in f'{name!!}'. I think it will be a good thing to have it in 3.8 since it serves one of the common things in debugging f'name = {name}' and perhaps it could be expanded out of f-strings after feedback.

Rust also introduced similar feature with https://doc.rust-lang.org/beta/std/macro.dbg.html and received very positive feedback . This will be a very exciting thing to look forward in 3.8 :)

----------

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


More information about the Python-bugs-list mailing list