PEP 822 proposes a new 'd-string' (dented multi-line string) syntax for Python, likely targeting version 3.15. Currently a draft, it introduces a 'd' prefix before triple-quoted strings that automatically strips common leading whitespace — essentially syntax sugar for `textwrap.dedent()`. The feature solves the awkward

•6m watch time
8 Comments

Sort: