You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Negative values in positional access inside formatting #77341
>>> "{[-1]}".format([1, 2, 3])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list indices must be integers or slices, not str
Activity
facundobatista commentedon Mar 27, 2018
This works fine:
This should work too: