classification
Title: "String conversion and formatting" formatting messes up array subscripting
Type: Stage: resolved
Components: Documentation Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: benjamin.peterson, docs@python, erlendaasland, miss-islington, willingc
Priority: normal Keywords: patch

Created on 2021-02-19 09:21 by erlendaasland, last changed 2021-03-01 02:20 by willingc. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24573 merged erlendaasland, 2021-02-19 09:22
PR 24584 merged miss-islington, 2021-02-19 15:32
PR 24585 merged miss-islington, 2021-02-19 15:32
Messages (4)
msg387298 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2021-02-19 09:21
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.
msg387330 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2021-02-19 15:32
New changeset 2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e by Erlend Egeberg Aasland in branch 'master':
closes bpo-43266: Improve array formatting. (GH-24573)
https://github.com/python/cpython/commit/2d3e463e4a5aa109d1c15c86f9631580f5ef7a7e
msg387332 - (view) Author: miss-islington (miss-islington) Date: 2021-02-19 15:55
New changeset 1cfed3d5b0ec1419c8a1d5cf8bff1a6e1483771a by Miss Islington (bot) in branch '3.9':
closes bpo-43266: Improve array formatting. (GH-24573)
https://github.com/python/cpython/commit/1cfed3d5b0ec1419c8a1d5cf8bff1a6e1483771a
msg387829 - (view) Author: Carol Willing (willingc) * (Python committer) Date: 2021-03-01 02:20
New changeset 4ebd637dde7d7e56b18926d2a70657abcac73df0 by Miss Islington (bot) in branch '3.8':
closes bpo-43266: Improve array formatting. (GH-24573) (GH-24585)
https://github.com/python/cpython/commit/4ebd637dde7d7e56b18926d2a70657abcac73df0
History
Date User Action Args
2021-03-01 02:20:15willingcsetnosy: + willingc
messages: + msg387829
2021-02-19 15:55:51miss-islingtonsetmessages: + msg387332
2021-02-19 15:32:55miss-islingtonsetpull_requests: + pull_request23364
2021-02-19 15:32:51benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg387330

resolution: fixed
stage: patch review -> resolved
2021-02-19 15:32:47miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request23363
2021-02-19 09:22:00erlendaaslandsetkeywords: + patch
stage: patch review
pull_requests: + pull_request23352
2021-02-19 09:21:37erlendaaslandcreate