Why were literal formatted strings (f-strings) so slow in Python 3.6 alpha? (now fixed in 3.6 stable)
Note: This answer was written for the Python 3.6 alpha releases. A new opcode added to 3.6.0b1 improved f-string performance significantly. The f”…” syntax is effectively converted to a str.join() operation on the literal string parts around the {…} expressions, and the results of the expressions themselves passed through the object.__format__() method (passing any :.. … Read more