Open sawczakl opened 1 year ago
This expression can't compile and results in an aborted file:
s = 'foo' f'{{{s}}}'
In Python this results in literal curly braces around the formatted variable:
>>> s = 'foo' >>> f'{{{s}}}' '{foo}'
Of course, a workaround is pretty trivial, but I thought it was interesting.
This expression can't compile and results in an aborted file:
In Python this results in literal curly braces around the formatted variable:
Of course, a workaround is pretty trivial, but I thought it was interesting.