diff options
author | Fred Drake <fdrake@acm.org> | 2002-08-14 20:59:38 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-08-14 20:59:38 (GMT) |
commit | 794643c3140d75bb5cd9c69214294d2291624c1e (patch) | |
tree | 79be7c7487606329c7ea9f291cbc831e4b9f4943 /Doc | |
parent | 233cc5987b6659d0fcd033a420ad8b5390ffa772 (diff) | |
download | cpython-794643c3140d75bb5cd9c69214294d2291624c1e.zip cpython-794643c3140d75bb5cd9c69214294d2291624c1e.tar.gz cpython-794643c3140d75bb5cd9c69214294d2291624c1e.tar.bz2 |
Py_InitModule() and friends now accept NULL for the 'methods'
argument. This makes sense now that extension types can support
__init__ directly rather than requiring function constructors.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/api/newtypes.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex index ff7c4ef..4aae617 100644 --- a/Doc/api/newtypes.tex +++ b/Doc/api/newtypes.tex @@ -83,6 +83,9 @@ defining new object types. PyMethodDef *methods} Create a new module object based on a name and table of functions, returning the new module object. + + \versionchanged[Older versions of Python did not support \NULL{} as + the value for the \var{methods} argument]{2.3} \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{Py_InitModule3}{char *name, @@ -91,6 +94,9 @@ defining new object types. Create a new module object based on a name and table of functions, returning the new module object. If \var{doc} is non-\NULL, it will be used to define the docstring for the module. + + \versionchanged[Older versions of Python did not support \NULL{} as + the value for the \var{methods} argument]{2.3} \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{Py_InitModule4}{char *name, @@ -109,6 +115,9 @@ defining new object types. \note{Most uses of this function should probably be using the \cfunction{Py_InitModule3()} instead; only use this if you are sure you need it.} + + \versionchanged[Older versions of Python did not support \NULL{} as + the value for the \var{methods} argument]{2.3} \end{cfuncdesc} DL_IMPORT |