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 <ker...@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@redhat.com > https://www.redhat.com/mailman/listinfo/pulp-dev >
_______________________________________________ Pulp-dev mailing list Pulp-dev@redhat.com https://www.redhat.com/mailman/listinfo/pulp-dev