<div dir="auto">I feel like that borders on a bit too wordy...<div dir="auto"><br></div><div dir="auto">Personally, I'd like to see something like Felix's regular definitions:</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><a href="http://felix-lang.org/share/src/web/tut/regexp_01.fdoc#Regular_definitions._h">http://felix-lang.org/share/src/web/tut/regexp_01.fdoc#Regular_definitions._h</a></div><div dir="auto"><br><br><div data-smartmail="gmail_signature" dir="auto">--<br>Ryan (ライアン)<br>Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else<br><a href="http://refi64.com">http://refi64.com</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 29, 2017 3:30 PM, "Abe Dillon" <<a href="mailto:abedillon@gmail.com">abedillon@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My 2 cents is that regular expressions are pretty un-pythonic because of their horrible readability. I would much rather see Python adopt something like Verbal Expressions ( <a href="https://github.com/VerbalExpressions/PythonVerbalExpressions" target="_blank">https://github.com/<wbr>VerbalExpressions/<wbr>PythonVerbalExpressions</a> ) into the standard library than add special syntax support for normal REs.</div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 3:31 AM, Paul Moore <span dir="ltr"><<a href="mailto:p.f.moore@gmail.com" target="_blank">p.f.moore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 28 March 2017 at 08:54, Simon D. <<a href="mailto:simon@acoeuro.com" target="_blank">simon@acoeuro.com</a>> wrote:<br>
> I believe that the u"" notation in Python 2.7 is defined by while<br>
> importing the unicode_litterals module.<br>
<br>
</span>That's not true. The u"..." syntax is part of the language. from<br>
future import unicode_literals is something completely different.<br>
<span><br>
> Each regexp lib could provide its instanciation of regexp litteral<br>
> notation.<br>
<br>
</span>The Python language has no way of doing that - user (or library)<br>
defined literals are not possible.<br>
<span><br>
> And if only the default one does, it would still be won for the<br>
> beginers, and the majority of persons using the stdlib.<br>
<br>
</span>How? You've yet to prove that having a regex literal form is an<br>
improvement over re.compile(r'put your regex here'). You've asserted<br>
it, but that's a matter of opinion. We'd need evidence of real-life<br>
code that was clearly improved by the existence of your proposed<br>
construct.<br>
<span class="m_-9122916151227336811HOEnZb"><font color="#888888"><br>
Paul<br>
</font></span><div class="m_-9122916151227336811HOEnZb"><div class="m_-9122916151227336811h5">______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
</div></div></blockquote></div><br></div>
</div><br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
<br></blockquote></div><br></div>