Author Ilya Kamenshchikov
Recipients Ilya Kamenshchikov, Todd.Rovito, docs@python, eric.araujo, eric.smith, flox, gosella, kisielk, marco.buttu, mark.dickinson, mrabarnett, rhettinger, terry.reedy
Date 2019-07-13.10:17:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563013039.02.0.924233662994.issue7951@roundup.psfhosted.org>
In-reply-to
Content
Py3.6+ f-strings support any indexing as they actually evaluate python expressions. 

>>> a = ['Java', 'Python']
>>> var = f"Hello {a[-1]}"
Hello Python
History
Date User Action Args
2019-07-13 10:17:19Ilya Kamenshchikovsetrecipients: + Ilya Kamenshchikov, rhettinger, terry.reedy, mark.dickinson, eric.smith, kisielk, eric.araujo, mrabarnett, flox, docs@python, gosella, Todd.Rovito, marco.buttu
2019-07-13 10:17:19Ilya Kamenshchikovsetmessageid: <1563013039.02.0.924233662994.issue7951@roundup.psfhosted.org>
2019-07-13 10:17:18Ilya Kamenshchikovlinkissue7951 messages
2019-07-13 10:17:18Ilya Kamenshchikovcreate