Hot #Python take: textwrap.dedent is great, but inspect.cleandoc is better (and it should be in textwrap, not inspect).
https://docs.python.org/3/library/inspect.html#inspect.cleandoc
(Actually not a hot take, it's carefully considered!)
Hot #Python take: textwrap.dedent is great, but inspect.cleandoc is better (and it should be in textwrap, not inspect).
https://docs.python.org/3/library/inspect.html#inspect.cleandoc
(Actually not a hot take, it's carefully considered!)
I'm the author of this popular StackOverflow answer https://stackoverflow.com/a/2504454/70157
and I approve Ned's message.