]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40204, doc: Fix syntax of C variables (GH-21846)
authorVictor Stinner <vstinner@python.org>
Thu, 13 Aug 2020 20:11:50 +0000 (22:11 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 20:11:50 +0000 (22:11 +0200)
commit474652fe9346382dbf793f20b671eb74668bebde
treee090a5b591783461601032795851e8b32d7f63e9
parent0eb9deb4a62e6d9daa82bc2f67d1075864ca8ece
bpo-40204, doc: Fix syntax of C variables (GH-21846)

For example, fix the following Sphinx 3 errors:

Doc/c-api/buffer.rst:102: WARNING: Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 5]
  void \*obj
  -----^

Doc/c-api/arg.rst:130: WARNING: Unparseable C cross-reference: 'PyObject*'
Invalid C declaration: Expected end of definition. [error at 8]
  PyObject*
  --------^

The modified documentation is compatible with Sphinx 2 and Sphinx 3.
19 files changed:
Doc/c-api/arg.rst
Doc/c-api/buffer.rst
Doc/c-api/call.rst
Doc/c-api/capsule.rst
Doc/c-api/dict.rst
Doc/c-api/exceptions.rst
Doc/c-api/file.rst
Doc/c-api/init.rst
Doc/c-api/intro.rst
Doc/c-api/marshal.rst
Doc/c-api/memory.rst
Doc/c-api/module.rst
Doc/c-api/object.rst
Doc/c-api/structures.rst
Doc/c-api/tuple.rst
Doc/c-api/typeobj.rst
Doc/c-api/unicode.rst
Doc/c-api/veryhigh.rst
Doc/whatsnew/3.3.rst