> This would be used in debugging print statements, that currently end up > looking like: > > print(f'value={value!r}') > > and would now be: > > print(f'{value!d}')
It seems to me that a short form for keyword arguments would improve this situation too. So instead of your suggestion one could do: print(dict(=value)) And of course this feature wouldn’t be a minor feature on f-strings but a feature that is generally useful and composable so the above could be improved: def debug(**kwargs): for k, v in kwargs.items(): print(f’{k}={v}’) debug(=value, =another) / Anders _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/