mirror of https://github.com/python/cpython
Document PyModule_AddIntConstant to take a long. Fixes #962471.
Will backport to 2.3.
This commit is contained in:
parent
04697e89b9
commit
dd07e59eee
|
@ -2263,7 +2263,7 @@ There are only a few functions special to module objects.
|
||||||
\end{cfuncdesc}
|
\end{cfuncdesc}
|
||||||
|
|
||||||
\begin{cfuncdesc}{int}{PyModule_AddIntConstant}{PyObject *module,
|
\begin{cfuncdesc}{int}{PyModule_AddIntConstant}{PyObject *module,
|
||||||
char *name, int value}
|
char *name, long value}
|
||||||
Add an integer constant to \var{module} as \var{name}. This
|
Add an integer constant to \var{module} as \var{name}. This
|
||||||
convenience function can be used from the module's initialization
|
convenience function can be used from the module's initialization
|
||||||
function. Returns \code{-1} on error, \code{0} on success.
|
function. Returns \code{-1} on error, \code{0} on success.
|
||||||
|
|
Loading…
Reference in New Issue