mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Document PyModule_AddIntConstant to take a long. Fixes #962471.
Will backport to 2.3.
This commit is contained in:
parent
04697e89b9
commit
dd07e59eee
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue