We have f"{variable = =}" to print the value of a variable, which is fine, but how about adding some modifier so that the output, specially of dicts, is formatted as if put through pprint?
I would like to domething like:
In [1]: # import pprint - whoops, would like to not need this.
In [2]: calories = dict(milk='OK', toffee='high', beer='acceptable', spinach='so?')
In [3]: print(f"{calories = }")
calories = {'milk': 'OK', 'toffee': 'high', 'beer': 'acceptable', 'spinach': 'so?'}
In [4]: print(f"{calories = :pp(width=30)}")
calories = {'milk': 'OK',
'toffee': 'high',
'beer': 'acceptable',
'spinach': 'so?'}