<div dir="ltr">On Mon, May 27, 2013 at 1:41 PM, Göktuğ Kayaalp <span dir="ltr"><<a href="mailto:goktug.kayaalp@gmail.com" target="_blank">goktug.kayaalp@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I think it would add some significant flexibility to Python to let users<br>
define custom string prefixes. What I mean by a string prefix is,<br>
a letter prefixing the string literal, modifying the behavior of it,<br><span class="">[...]<br></span></blockquote><div><br></div><div style>The feature isn't present. But it isn't really clear what you want either. The current string prefixes are not dynamically analyzed. Do you want static hooks for the lexer? A string method to register new prefixes? Do you want to specify new string prefixes in the existing framework?</div>
<div style><br></div><div style>I think string prefixes aren't something that we want more of, this is already complicated enough:</div><div style>"b" | "B" | "br" | "Br" | "bR" | "BR" | "rb" | "rB" | "Rb" | "RB"<br>
</div><div style>"r" | "u" | "R" | "U"<br></div><div><br></div><div style>We should be more creative on how to get rid of them.</div><div><br></div><div style>Yuval Greenfield</div>
<div style><br></div></div></div></div>