[Python-ideas] Binary f-strings

João Bernardo jbvsmo at gmail.com
Fri Oct 2 16:48:07 CEST 2015


>
>
> But some of the other arguments are making me think bf'' is a bad idea,
> so now I'm leaning towards not implementing it.
>
>
What about rf''? (sorry for being off topic here)

Regex could benefit from it:

my_regex = rf"ˆ\w+\s*({'|'.join(expected_words)})$"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151002/faa3edf8/attachment.html>


More information about the Python-ideas mailing list