mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
merge 3.1
This commit is contained in:
commit
f97aed1a25
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ These functions are usually used in the module initialization function.
|
|||
.. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
|
||||
|
||||
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*.
|
||||
Return ``-1`` on error, ``0`` on success.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue