diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-04-30 18:15:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-04-30 18:15:18 (GMT) |
commit | f97aed1a2506539ca612bad9435b1f92b811857d (patch) | |
tree | f5559cd0355823ab9ff67f9d41b9a4d2ca904e27 /Doc/c-api/module.rst | |
parent | 3cbf14bfb11ce1f7f94a2a8e69161a621a200a5d (diff) | |
parent | 4c020885d9614e6c974835ca898e2f56a88ba6c3 (diff) | |
download | cpython-f97aed1a2506539ca612bad9435b1f92b811857d.zip cpython-f97aed1a2506539ca612bad9435b1f92b811857d.tar.gz cpython-f97aed1a2506539ca612bad9435b1f92b811857d.tar.bz2 |
merge 3.1
Diffstat (limited to 'Doc/c-api/module.rst')
-rw-r--r-- | Doc/c-api/module.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 1a64947..ffd68e3 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -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. |