mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
fix function name in example (closes #11966)
This commit is contained in:
parent
b22f39cb94
commit
2a7a3ee39a
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ There are only a few functions special to module objects.
|
||||||
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
|
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
|
||||||
|
|
||||||
Add an int constant to *module*. The name and the value are taken from
|
Add an int constant to *module*. The name and the value are taken from
|
||||||
*macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
|
*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
|
||||||
constant *AF_INET* with the value of *AF_INET* to *module*.
|
constant *AF_INET* with the value of *AF_INET* to *module*.
|
||||||
Return ``-1`` on error, ``0`` on success.
|
Return ``-1`` on error, ``0`` on success.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue