[Pulp-dev] Proposal to adopt f'strings for Pulp 3

David Davis daviddavis at redhat.com
Fri Oct 5 15:29:16 UTC 2018


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:

https://bugs.python.org/issue33189

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.

David


On Fri, Oct 5, 2018 at 11:15 AM Kersom <kersom at redhat.com> wrote:

> 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]
>
> Just a suggestion.
>
> [0] https://docs.python.org/3/reference/lexical_analysis.html#f-strings
>
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20181005/de74c999/attachment.htm>


More information about the Pulp-dev mailing list