This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients gregory.p.smith, mbussonn, rhettinger, steven.daprano
Date 2019-05-14.02:44:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

There's a long thread on something similar here:

Carrying over into the following month:

Here's an even older thread:

In the more recent thread, I suggested that we give strings a dedent method. When called on a literal, the keyhole optimizer may do the dedent at compile time. Whether it does or not is a "quality of implementation" factor.

The idea is to avoid the combinational explosion of yet another string prefix:

    urd'...'  # unicode raw string dedent

while still making string dedents easily discoverable, and with a sufficiently good interpreter, string literals will be dedented at compile time avoiding any runtime cost:
Date User Action Args
2019-05-14 02:44:39steven.dapranosetrecipients: + steven.daprano, rhettinger, gregory.p.smith, mbussonn
2019-05-14 02:44:39steven.dapranosetmessageid: <>
2019-05-14 02:44:39steven.dapranolinkissue36906 messages
2019-05-14 02:44:39steven.dapranocreate