Commit 4eb1a00c authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #1003861 from Dima Dorfman] Fix markup in concrete.tex:

PyObject* o -> PyObject *o to be consistent with the
rest of the file
- Correct markup for Py_True
- Remove duplicate description of PyBool_Check
parent 672d2ba7
...@@ -121,13 +121,13 @@ There is no \cfunction{PyNone_Check()} function for the same reason. ...@@ -121,13 +121,13 @@ There is no \cfunction{PyNone_Check()} function for the same reason.
\withsubitem{(in modules types)}{\ttindex{IntType}} \withsubitem{(in modules types)}{\ttindex{IntType}}
\end{cvardesc} \end{cvardesc}
\begin{cfuncdesc}{int}{PyInt_Check}{PyObject* o} \begin{cfuncdesc}{int}{PyInt_Check}{PyObject *o}
Returns true if \var{o} is of type \cdata{PyInt_Type} or a subtype Returns true if \var{o} is of type \cdata{PyInt_Type} or a subtype
of \cdata{PyInt_Type}. of \cdata{PyInt_Type}.
\versionchanged[Allowed subtypes to be accepted]{2.2} \versionchanged[Allowed subtypes to be accepted]{2.2}
\end{cfuncdesc} \end{cfuncdesc}
\begin{cfuncdesc}{int}{PyInt_CheckExact}{PyObject* o} \begin{cfuncdesc}{int}{PyInt_CheckExact}{PyObject *o}
Returns true if \var{o} is of type \cdata{PyInt_Type}, but not a Returns true if \var{o} is of type \cdata{PyInt_Type}, but not a
subtype of \cdata{PyInt_Type}. subtype of \cdata{PyInt_Type}.
\versionadded{2.2} \versionadded{2.2}
...@@ -199,7 +199,7 @@ are only two booleans, \constant{Py_False} and \constant{Py_True}. As ...@@ -199,7 +199,7 @@ are only two booleans, \constant{Py_False} and \constant{Py_True}. As
such, the normal creation and deletion functions don't apply to such, the normal creation and deletion functions don't apply to
booleans. The following macros are available, however. booleans. The following macros are available, however.
\begin{cfuncdesc}{int}{PyBool_Check}{PyObject* o} \begin{cfuncdesc}{int}{PyBool_Check}{PyObject *o}
Returns true if \var{o} is of type \cdata{PyBool_Type}. Returns true if \var{o} is of type \cdata{PyBool_Type}.
\versionadded{2.3} \versionadded{2.3}
\end{cfuncdesc} \end{cfuncdesc}
...@@ -221,16 +221,11 @@ booleans. The following macros are available, however. ...@@ -221,16 +221,11 @@ booleans. The following macros are available, however.
\end{csimplemacrodesc} \end{csimplemacrodesc}
\begin{csimplemacrodesc}{Py_RETURN_TRUE} \begin{csimplemacrodesc}{Py_RETURN_TRUE}
Return Py_True from a function, properly incrementing its reference Return \constant{Py_True} from a function, properly incrementing its
count. reference count.
\versionadded{2.4} \versionadded{2.4}
\end{csimplemacrodesc} \end{csimplemacrodesc}
\begin{cfuncdesc}{int}{PyBool_Check}{PyObject* o}
Returns true if \var{o} is of type \cdata{PyBool_Type}.
\versionadded{2.3}
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyBool_FromLong}{long v} \begin{cfuncdesc}{int}{PyBool_FromLong}{long v}
Returns \constant{Py_True} or \constant{Py_False} depending on the Returns \constant{Py_True} or \constant{Py_False} depending on the
truth value of \var{v}. truth value of \var{v}.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment