Build f-strings from normal strings
问题 I'm trying the new f-strings, and I'm wondering if it's possible to "compile" a normal string into an f-string. So to have control on the evaluation time of the f-string, and be capable of defining f-strings before consuming them. Example pseudo-code: a = 'normal string with some curly {inside}' inside = 'in it!' print(a.make_f_string()) >>> 'normal string with some curly in it!' So basically my need is to define the f-string before the variable that it contains. or make a string an f-string.