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 <1557801879.56.0.744568062236.issue36906@roundup.psfhosted.org>
In-reply-to
Content
+1

There's a long thread on something similar here:

https://mail.python.org/pipermail/python-ideas/2018-March/049564.html

Carrying over into the following month:

https://mail.python.org/pipermail/python-ideas/2018-April/049582.html

Here's an even older thread:

https://mail.python.org/pipermail/python-ideas/2010-November/008589.html


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:

https://mail.python.org/pipermail/python-ideas/2018-March/049578.html
History
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: <1557801879.56.0.744568062236.issue36906@roundup.psfhosted.org>
2019-05-14 02:44:39steven.dapranolinkissue36906 messages
2019-05-14 02:44:39steven.dapranocreate