Add PyFloat_FromString. Left the char **pend argument out of the

description since while there, it is useless and ignored, according to Tim's
commen.  (PyInt_FromString is also not described, but PyLong_FromString is.
Is the former deprecated?)
This commit is contained in:
Skip Montanaro 2003-02-03 03:56:36 +00:00
parent 49992f9d25
commit ae31e9b8c7
1 changed files with 5 additions and 0 deletions

View File

@ -317,6 +317,11 @@ There is no \cfunction{PyNone_Check()} function for the same reason.
\versionadded{2.2}
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyFloat_FromString}{PyObject *str}
Creates a \ctype{PyFloatObject} object based on the string value in
\var{str}, or \NULL{} on failure.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyFloat_FromDouble}{double v}
Creates a \ctype{PyFloatObject} object from \var{v}, or \NULL{} on
failure.