<div><div dir="auto">Ok I see this is nothing for any 3.x release. </div><div dir="auto">I imagine this now either ‚clean‘ for users with compatibility break or just leave things as they are. </div><div dir="auto">So, if at all, maybe something for Python 4 :)</div><div dir="auto"><br></div><div dir="auto">Coincidence I watched yesterday Armin Ronachers talk related to seeing compatibility as the holy cow - interesting watch...</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://www.youtube.com/watch?v=xkcNoqHgNs8&feature=youtu.be&t=2890">https://www.youtube.com/watch?v=xkcNoqHgNs8&feature=youtu.be&t=2890</a></div><br></div><br><div class="gmail_quote"><div>Steven D'Aprano <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>> schrieb am So. 1. Apr. 2018 um 03:49:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Apr 01, 2018 at 02:20:16AM +0100, Rob Cliffe via Python-ideas wrote:<br>
<br>
> >New unordered 'd' and 'D' prefixes, for 'dedent', applied to multiline<br>
> >strings only, would multiply the number of alternatives by about 5 and<br>
> >would require another rewrite of all code (Python or not) that parses<br>
> >Python code (such as in syntax colorizers).<br>
><br>
> I think you're exaggerating the difficulty somewhat. Multiplying the<br>
> number of alternatives by 5 is not the same thing as increasing the<br>
> complexity of code to parse it by 5.<br>
<br>
Terry didn't say that it would increase the complexity of the code by a<br>
factor of five. He said it would multiply the number of alternatives by<br>
"about 5". There would be a significant increase in the complexity of<br>
the code too, but I wouldn't want to guess how much.<br>
<br>
Starting with r and f prefixes, in both upper and lower case, we have:<br>
<br>
4 single letter prefixes<br>
(plus 2 more, u and U, that don't combine with others)<br>
8 double letter prefixes<br>
<br>
making 14 in total. Adding one more prefix, d|D, increases it to:<br>
<br>
6 single letter prefixes<br>
(plus 2 more, u and U)<br>
24 double letter prefixes<br>
48 triple letter prefixes<br>
<br>
making 80 prefixes in total. Terry actually underestimated the explosion<br>
in prefixes: it is closer to six times more than five (but who is<br>
counting? apart from me *wink*)<br>
<br>
[Aside: if we add a fourth, the total becomes 634 prefixes.]<br>
<br>
<br>
<br>
--<br>
Steve<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div></div>