Rather than rewriting Python's string interpolation, would it be possible to just take the string and interpolate it with some dummy objects that have sufficient __int__, __float__, __str__, etc. defined on them, and see if any errors are raised (basically, reuse Python's own engine)?
Rather than rewriting Python's string interpolation, would it be possible to just take the string and interpolate it with some dummy objects that have sufficient __int__, __float__, __str__, etc. defined on them, and see if any errors are raised (basically, reuse Python's own engine)?