Ilya Kamenshchikov <[email protected]> added the comment:
Py3.6+ f-strings support any indexing as they actually evaluate python
expressions.
>>> a = ['Java', 'Python']
>>> var = f"Hello {a[-1]}"
Hello Python
----------
nosy: +Ilya Kamenshchikov
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue7951>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com