2 ms·
What the Python code is doing is arguably a form of run-time reflection. Format strings contain embedded variables and expression, and the format function evalu
by kazinator 10y ago
What the Python code is doing is arguably a form of run-time reflection. Format strings contain embedded variables and expression, and the format function evaluates them: hence reflection.
Format strings occurring as literals in Python source could be treated at compile time, like in Scala.