mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
This commit is contained in:
parent
576def096e
commit
84b8e92e46
12 changed files with 84 additions and 89 deletions
|
@ -490,10 +490,10 @@ APIs:
|
|||
| :attr:`%x` | int | Exactly equivalent to |
|
||||
| | | ``printf("%x")``. |
|
||||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%s` | char\* | A null-terminated C character |
|
||||
| :attr:`%s` | const char\* | A null-terminated C character |
|
||||
| | | array. |
|
||||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%p` | void\* | The hex representation of a C |
|
||||
| :attr:`%p` | const void\* | The hex representation of a C |
|
||||
| | | pointer. Mostly equivalent to |
|
||||
| | | ``printf("%p")`` except that |
|
||||
| | | it is guaranteed to start with |
|
||||
|
@ -506,8 +506,8 @@ APIs:
|
|||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%U` | PyObject\* | A unicode object. |
|
||||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%V` | PyObject\*, char \* | A unicode object (which may be |
|
||||
| | | *NULL*) and a null-terminated |
|
||||
| :attr:`%V` | PyObject\*, | A unicode object (which may be |
|
||||
| | const char\* | *NULL*) and a null-terminated |
|
||||
| | | C character array as a second |
|
||||
| | | parameter (which will be used, |
|
||||
| | | if the first parameter is |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue