Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cbf14b + 4c02088 commit f97aed1Copy full SHA for f97aed1
1 file changed
Doc/c-api/module.rst
@@ -205,7 +205,7 @@ These functions are usually used in the module initialization function.
205
.. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
206
207
Add an int constant to *module*. The name and the value are taken from
208
- *macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
+ *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
209
constant *AF_INET* with the value of *AF_INET* to *module*.
210
Return ``-1`` on error, ``0`` on success.
211
0 commit comments