diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-21 07:52:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 07:52:07 (GMT) |
commit | fcc816dbff7ca66c26f57a506e4d2330fe41d0ff (patch) | |
tree | 98cc80573f16950153790ddbd7d017374d439d10 /Doc/c-api/veryhigh.rst | |
parent | 81861fd90b4ae981e7881cd03a3c370713063525 (diff) | |
download | cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.zip cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.tar.gz cpython-fcc816dbff7ca66c26f57a506e4d2330fe41d0ff.tar.bz2 |
gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)
Diffstat (limited to 'Doc/c-api/veryhigh.rst')
-rw-r--r-- | Doc/c-api/veryhigh.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index 000a2d3..1e8a945 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -12,8 +12,8 @@ file or a buffer, but they will not let you interact in a more detailed way with the interpreter. Several of these functions accept a start symbol from the grammar as a -parameter. The available start symbols are :const:`Py_eval_input`, -:const:`Py_file_input`, and :const:`Py_single_input`. These are described +parameter. The available start symbols are :c:data:`Py_eval_input`, +:c:data:`Py_file_input`, and :c:data:`Py_single_input`. These are described following the functions which accept them as parameters. Note also that several of these functions take :c:expr:`FILE*` parameters. One @@ -256,8 +256,8 @@ the same library that the Python runtime is using. Parse and compile the Python source code in *str*, returning the resulting code object. The start token is given by *start*; this can be used to constrain the - code which can be compiled and should be :const:`Py_eval_input`, - :const:`Py_file_input`, or :const:`Py_single_input`. The filename specified by + code which can be compiled and should be :c:data:`Py_eval_input`, + :c:data:`Py_file_input`, or :c:data:`Py_single_input`. The filename specified by *filename* is used to construct the code object and may appear in tracebacks or :exc:`SyntaxError` exception messages. This returns ``NULL`` if the code cannot be parsed or compiled. |