@@ -168,6 +168,20 @@ \subsection{Plain Integer Objects \label{intObjects}}
168168 performed.
169169\end {cfuncdesc }
170170
171+ \begin {cfuncdesc }{unsigned long}{PyInt_AsUnsignedLongMask}{PyObject *io}
172+ Will first attempt to cast the object to a \ctype {PyIntObject} or
173+ \ctypes {PyLongObject}, if it is not already one, and then return its
174+ value as unsigned long. This function does not check for overflow.
175+ \versionadded {2.3}
176+ \end {cfuncdesc }
177+
178+ \begin {cfuncdesc }{unsigned long}{PyInt_AsUnsignedLongLongMask}{PyObject *io}
179+ Will first attempt to cast the object to a \ctype {PyIntObject} or
180+ \ctypes {PyLongObject}, if it is not already one, and then return its
181+ value as unsigned long long, without checking for overflow.
182+ \versionadded {2.3}
183+ \end {cfuncdesc }
184+
171185\begin {cfuncdesc }{long}{PyInt_GetMax}{}
172186 Returns the system's idea of the largest integer it can handle
173187 (\constant {LONG_MAX}\ttindex {LONG_MAX}, as defined in the system
@@ -293,6 +307,18 @@ \subsection{Long Integer Objects \label{longObjects}}
293307 \versionadded {2.2}
294308\end {cfuncdesc }
295309
310+ \begin {cfuncdesc }{unsigned long}{PyLong_AsUnsignedLongMask}{PyObject *io}
311+ Return a C \ctype {unsigned long} from a Python long integer, without
312+ checking for overflow.
313+ \versionadded {2.3}
314+ \end {cfuncdesc }
315+
316+ \begin {cfuncdesc }{unsigned long}{PyLong_AsUnsignedLongLongMask}{PyObject *io}
317+ Return a C \ctype {unsigned long long} from a Python long integer, without
318+ checking for overflow.
319+ \versionadded {2.3}
320+ \end {cfuncdesc }
321+
296322\begin {cfuncdesc }{double}{PyLong_AsDouble}{PyObject *pylong}
297323 Returns a C \ctype {double} representation of the contents of
298324 \var {pylong}. If \var {pylong} cannot be approximately represented
0 commit comments