F Strings!
summary
Covers practical f-string features up to Python 3.12: using format specifiers for datetime and numeric formatting, calling functions and methods directly inside expressions, and the debug equals shorthand (var= prints name and value, introduced in 3.8). Highlights 3.12 additions: multi-line expressions, nested f-strings, reuse of the same quote style inside expressions, and improved f-string error messages. Mentions the PEP 750 proposal for tagged strings and provides a QR barcode to slides and docs. Gives concrete syntax examples and migration prompts (upgrade to Python 3.12).
AI-written summary · about
chapters (5)
related talks
28mIntroducing t-strings: f-strings with superpowers
20mPEP 498: The Monologue
43mPython Improvements (or This Is Not Your Teacher's Python)
09mHow to format strings for logging in Python
31mIntroduce Syntax and History of Python from 2.4 to 3.6
27m"Disentangling formatted strings with T-strings"
35mText Is Not Text: The History of Strings in Python
01h 22mWhat's New in Python 3
