[docs] [issue7951] Should str.format allow negative indexes when used for __getitem__ access?

Ilya Kamenshchikov report at bugs.python.org
Sat Jul 13 06:17:19 EDT 2019

Ilya Kamenshchikov <ikamenshchikov at gmail.com> 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 <report at bugs.python.org>

More information about the docs mailing list