\begin{cvardesc}{PyObject*}{PyType_Type}
This is the type object for type objects; it is the same object as
- \code{types.TypeType} in the Python layer.
+ \code{type} and \code{types.TypeType} in the Python layer.
\withsubitem{(in module types)}{\ttindex{TypeType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyInt_Type}
This instance of \ctype{PyTypeObject} represents the Python plain
- integer type. This is the same object as \code{types.IntType}.
+ integer type. This is the same object as \code{int} and
+ \code{types.IntType}.
\withsubitem{(in modules types)}{\ttindex{IntType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyLong_Type}
This instance of \ctype{PyTypeObject} represents the Python long
- integer type. This is the same object as \code{types.LongType}.
+ integer type. This is the same object as \code{long} and
+ \code{types.LongType}.
\withsubitem{(in modules types)}{\ttindex{LongType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyFloat_Type}
This instance of \ctype{PyTypeObject} represents the Python floating
- point type. This is the same object as \code{types.FloatType}.
+ point type. This is the same object as \code{float} and
+ \code{types.FloatType}.
\withsubitem{(in modules types)}{\ttindex{FloatType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyComplex_Type}
This instance of \ctype{PyTypeObject} represents the Python complex
- number type.
+ number type. It is the same object as \code{complex} and
+ \code{types.ComplexType}.
\end{cvardesc}
\begin{cfuncdesc}{int}{PyComplex_Check}{PyObject *p}
\begin{cvardesc}{PyTypeObject}{PyString_Type}
This instance of \ctype{PyTypeObject} represents the Python string
- type; it is the same object as \code{types.StringType} in the Python
- layer.
+ type; it is the same object as \code{str} and \code{types.StringType}
+ in the Python layer.
\withsubitem{(in module types)}{\ttindex{StringType}}.
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyUnicode_Type}
This instance of \ctype{PyTypeObject} represents the Python Unicode
- type.
+ type. It is exposed to Python code as \code{unicode} and
+ \code{types.UnicodeType}.
\end{cvardesc}
The following APIs are really C macros and can be used to do fast
\begin{cvardesc}{PyTypeObject}{PyBuffer_Type}
The instance of \ctype{PyTypeObject} which represents the Python
- buffer type; it is the same object as \code{types.BufferType} in the
- Python layer.\withsubitem{(in module types)}{\ttindex{BufferType}}.
+ buffer type; it is the same object as \code{buffer} and
+ \code{types.BufferType} in the Python layer.
+ \withsubitem{(in module types)}{\ttindex{BufferType}}.
\end{cvardesc}
\begin{cvardesc}{int}{Py_END_OF_BUFFER}
\begin{cvardesc}{PyTypeObject}{PyTuple_Type}
This instance of \ctype{PyTypeObject} represents the Python tuple
- type; it is the same object as \code{types.TupleType} in the Python
- layer.\withsubitem{(in module types)}{\ttindex{TupleType}}.
+ type; it is the same object as \code{tuple} and \code{types.TupleType}
+ in the Python layer.\withsubitem{(in module types)}{\ttindex{TupleType}}.
\end{cvardesc}
\begin{cfuncdesc}{int}{PyTuple_Check}{PyObject *p}
\begin{cvardesc}{PyTypeObject}{PyList_Type}
This instance of \ctype{PyTypeObject} represents the Python list
- type. This is the same object as \code{types.ListType}.
- \withsubitem{(in module types)}{\ttindex{ListType}}
+ type. This is the same object as \code{list} and \code{types.ListType}
+ in the Python layer.\withsubitem{(in module types)}{\ttindex{ListType}}
\end{cvardesc}
\begin{cfuncdesc}{int}{PyList_Check}{PyObject *p}
\begin{cvardesc}{PyTypeObject}{PyDict_Type}
This instance of \ctype{PyTypeObject} represents the Python
dictionary type. This is exposed to Python programs as
- \code{types.DictType} and \code{types.DictionaryType}.
+ \code{dict} and \code{types.DictType}.
\withsubitem{(in module types)}{\ttindex{DictType}\ttindex{DictionaryType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PyFile_Type}
This instance of \ctype{PyTypeObject} represents the Python file
- type. This is exposed to Python programs as \code{types.FileType}.
+ type. This is exposed to Python programs as \code{file} and
+ \code{types.FileType}.
\withsubitem{(in module types)}{\ttindex{FileType}}
\end{cvardesc}
\begin{cvardesc}{PyTypeObject}{PySlice_Type}
The type object for slice objects. This is the same as
- \code{types.SliceType}.
+ \code{slice} and \code{types.SliceType}.
\withsubitem{(in module types)}{\ttindex{SliceType}}
\end{cvardesc}