]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] Docs: Fix Sphinx warnings in sys.rst (GH-108106) (#108166)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 20 Aug 2023 13:52:44 +0000 (06:52 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2023 13:52:44 +0000 (19:22 +0530)
commit5af34d2a4e41c17765cc77e956b8ab8008db1b34
tree6d5de2bf2c206e2f5507480c183bc66f40819dcf
parentba6370656f7bf2b2b5882aad7d3c060f9b117540
[3.11] Docs: Fix Sphinx warnings in sys.rst (GH-108106) (#108166)

Docs: Fix Sphinx warnings in sys.rst (GH-108106)

- Mark up named tuple attributes as attributes
- Remove links for external functions
- io.BufferedIOBase has no 'buffer' attribute;
  remove the link and mark up using :attr:`!buffer`
- (Re)format some tables as bullet lists:
  - sys._emscripten_info
  - sys.hash_info
  - sys.int_info
  - sys.thread_info
- In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes',
  add links to the frame objects reference.

(cherry picked from commit 29fa7afef94d74e18d97485c085d1ccf80c16ca3)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/sys.rst
Doc/library/textwrap.rst
Doc/tools/.nitignore