New submission from Erlend Egeberg Aasland :
str[size-1] is rendered incorrectly in https://docs.python.org/3.10/c-api/conversion.html
The original intent was probably to apply italics to the variables names only. This can be fixed by prefixing the first bracket with a backslash. However, that results in the italic text crashing with the bracket. I suggest to just use ``str[size-1]``.
Also applies to str[rv] in the same section.
----------
assignee: docs@python
components: Documentation
messages: 387298
nosy: docs@python, erlendaasland
priority: normal
severity: normal
status: open
title: "String conversion and formatting" formatting messes up array subscripting
versions: Python 3.10, Python 3.8, Python 3.9
_______________________________________
Python tracker
https://bugs.python.org/issue43266
_______________________________________