10
The functions in this chapter are specific to certain Python object types.
11
Passing them an object of the wrong type is not a good idea; if you receive an
12
object from a Python program and you are not sure that it has the right type,
13
you must perform a type check first; for example, to check that an object is a
14
dictionary, use :c:func:`PyDict_Check`. The chapter is structured like the
15
"family tree" of Python object types.
19
While the functions described in this chapter carefully check the type of the
20
objects which are passed in, many of them do not check for *NULL* being passed
21
instead of a valid object. Allowing *NULL* to be passed in can cause memory
22
access violations and immediate termination of the interpreter.
30
This section describes Python type objects and the singleton object ``None``.
43
.. index:: object: numeric
58
.. index:: object: sequence
60
Generic operations on sequence objects were discussed in the previous chapter;
61
this section deals with the specific kinds of sequence objects that are
62
intrinsic to the Python language.
64
.. XXX sort out unicode, str, bytes and bytearray
80
.. index:: object: mapping