PEP 498: The Monologue
summary
PEP 498 adds a one-letter prefix that lets literal strings include Python expressions in braces so you write f-strings or formatted string literals instead of %-formatting or str.format; implementation lands in Python 3.6 and shows measurable speed gains over % and format in simple tests. It supports format specifiers, method calls inside expressions, raw f-strings (no escape processing), disallows byte/Unicode prefix combos, and ships successfully after quick community review.
AI-written summary · about
chapters (6)
related talks
24mF Strings!
31mPEP 750 - T-strings: safer and smarter string processing
17mHow Python Evolves: The Role of Python Enhancement Proposals (PEPs)
09mHow to format strings for logging in Python
29mUncovering the magic of implementing a new Python syntax feature
28mIntroducing t-strings: f-strings with superpowers
25mPEP 8: How to Avoid Being a Python Hooligan
01h 22mWhat's New in Python 3
