<div dir="ltr"><div dir="ltr"><div dir="ltr">I’d love to use f-strings as they seem to offer a speed improvement and are IMO more readable. However, I did some research and it looks like we can’t use them with gettext:<br><div><br></div><div><a href="https://bugs.python.org/issue33189">https://bugs.python.org/issue33189</a></div><div><br></div><div>Which is rather unfortunate. I suppose in those rare cases where we use an interpolated string that doesn’t require translation, we could use f-strings.<br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>David<br></div></div></div></div></div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 5, 2018 at 11:15 AM Kersom <<a href="mailto:kersom@redhat.com">kersom@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Since support for Python 3.5 was dropped. Perhaps we
 could evaluate Pulp 3 adopt the new features supported by Python3.6 only, such as f'strings.[0]</div><div><br></div><div></div><div>Just a suggestion.</div><div><br></div><div>[0] <a href="https://docs.python.org/3/reference/lexical_analysis.html#f-strings" target="_blank">https://docs.python.org/3/reference/lexical_analysis.html#f-strings</a><br></div><div><br></div></div></div>
_______________________________________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com" target="_blank">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-dev</a><br>
</blockquote></div>