Issue 33160: Negative values in positional access inside formatting (original) (raw)
This works fine:
"{[0]}".format([1, 2, 3]) '1'
This should work too:
"{[-1]}".format([1, 2, 3]) Traceback (most recent call last): File "", line 1, in TypeError: list indices must be integers or slices, not str