>That's not possible
That statement is against my religious beliefs. Apparently we can stick an f in front of the string, but we can't have default values that work with locals()?
That statement is against my religious beliefs. Apparently we can stick an f in front of the string, but we can't have default values that work with locals()?
Adding a new syntax that doesn't exist in any language.
vs.
Using sensible default parameters.
-----------------
An argument for why my suggestion would be bad: https://www.python.org/dev/peps/pep-0498/#no-use-of-globals-...
Not true, look into the new interpolation features in C#, Scala, JS, Swift, nim, etc.
Please, even JavaScript (ES6) got itself something similar; implicit string interpolation is not that rare.
Also, this alternative solution would not allow arbitrary expressions, which was a design goal.