Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6009ece

Browse files
author
Victor Stinner
committed
Replace :func: by :cfunc:
To get links to the C functions
1 parent f5be090 commit 6009ece

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/c-api/bytes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ called with a non-bytes parameter.
114114

115115
.. cfunction:: PyObject* PyBytes_FromFormatV(const char *format, va_list vargs)
116116

117-
Identical to :func:`PyBytes_FromFormat` except that it takes exactly two
117+
Identical to :cfunc:`PyBytes_FromFormat` except that it takes exactly two
118118
arguments.
119119

120120

Doc/c-api/dict.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ Dictionary Objects
190190
.. cfunction:: int PyDict_Merge(PyObject *a, PyObject *b, int override)
191191

192192
Iterate over mapping object *b* adding key-value pairs to dictionary *a*.
193-
*b* may be a dictionary, or any object supporting :func:`PyMapping_Keys`
194-
and :func:`PyObject_GetItem`. If *override* is true, existing pairs in *a*
193+
*b* may be a dictionary, or any object supporting :cfunc:`PyMapping_Keys`
194+
and :cfunc:`PyObject_GetItem`. If *override* is true, existing pairs in *a*
195195
will be replaced if a matching key is found in *b*, otherwise pairs will
196196
only be added if there is not a matching key in *a*. Return ``0`` on
197197
success or ``-1`` if an exception was raised.

Doc/c-api/import.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,16 @@ Importing Modules
124124
If *name* points to a dotted name of the form ``package.module``, any package
125125
structures not already created will still not be created.
126126

127-
See also :func:`PyImport_ExecCodeModuleEx` and
128-
:func:`PyImport_ExecCodeModuleWithPathnames`.
127+
See also :cfunc:`PyImport_ExecCodeModuleEx` and
128+
:cfunc:`PyImport_ExecCodeModuleWithPathnames`.
129129

130130

131131
.. cfunction:: PyObject* PyImport_ExecCodeModuleEx(char *name, PyObject *co, char *pathname)
132132

133133
Like :cfunc:`PyImport_ExecCodeModule`, but the :attr:`__file__` attribute of
134134
the module object is set to *pathname* if it is non-``NULL``.
135135

136-
See also :func:`PyImport_ExecCodeModuleWithPathnames`.
136+
See also :cfunc:`PyImport_ExecCodeModuleWithPathnames`.
137137

138138

139139
.. cfunction:: PyObject* PyImport_ExecCodeModuleWithPathnames(char *name, PyObject *co, char *pathname, char *cpathname)

Doc/c-api/unicode.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ APIs:
305305
| | | *NULL*). |
306306
+-------------------+---------------------+--------------------------------+
307307
| :attr:`%S` | PyObject\* | The result of calling |
308-
| | | :func:`PyObject_Str`. |
308+
| | | :cfunc:`PyObject_Str`. |
309309
+-------------------+---------------------+--------------------------------+
310310
| :attr:`%R` | PyObject\* | The result of calling |
311-
| | | :func:`PyObject_Repr`. |
311+
| | | :cfunc:`PyObject_Repr`. |
312312
+-------------------+---------------------+--------------------------------+
313313

314314
An unrecognized format character causes all the rest of the format string to be
@@ -325,7 +325,7 @@ APIs:
325325

326326
.. cfunction:: PyObject* PyUnicode_FromFormatV(const char *format, va_list vargs)
327327

328-
Identical to :func:`PyUnicode_FromFormat` except that it takes exactly two
328+
Identical to :cfunc:`PyUnicode_FromFormat` except that it takes exactly two
329329
arguments.
330330

331331

@@ -375,7 +375,7 @@ To encode and decode file names and other environment strings,
375375
:cdata:`Py_FileSystemEncoding` should be used as the encoding, and
376376
``"surrogateescape"`` should be used as the error handler (:pep:`383`). To
377377
encode file names during argument parsing, the ``"O&"`` converter should be
378-
used, passsing :func:`PyUnicode_FSConverter` as the conversion function:
378+
used, passsing :cfunc:`PyUnicode_FSConverter` as the conversion function:
379379

380380
.. cfunction:: int PyUnicode_FSConverter(PyObject* obj, void* result)
381381

@@ -388,7 +388,7 @@ used, passsing :func:`PyUnicode_FSConverter` as the conversion function:
388388

389389

390390
To decode file names during argument parsing, the ``"O&"`` converter should be
391-
used, passsing :func:`PyUnicode_FSDecoder` as the conversion function:
391+
used, passsing :cfunc:`PyUnicode_FSDecoder` as the conversion function:
392392

393393
.. cfunction:: int PyUnicode_FSDecoder(PyObject* obj, void* result)
394394

@@ -407,7 +407,7 @@ used, passsing :func:`PyUnicode_FSDecoder` as the conversion function:
407407

408408
If :cdata:`Py_FileSystemDefaultEncoding` is not set, fall back to UTF-8.
409409

410-
Use :func:`PyUnicode_DecodeFSDefaultAndSize` if you know the string length.
410+
Use :cfunc:`PyUnicode_DecodeFSDefaultAndSize` if you know the string length.
411411

412412

413413
.. cfunction:: PyObject* PyUnicode_DecodeFSDefault(const char *s)

0 commit comments

Comments
 (0)