| 1 |
|
| 2 |
.. _datatypes: |
| 3 |
|
| 4 |
********** |
| 5 |
Data Types |
| 6 |
********** |
| 7 |
|
| 8 |
The modules described in this chapter provide a variety of specialized data |
| 9 |
types such as dates and times, fixed-type arrays, heap queues, synchronized |
| 10 |
queues, and sets. |
| 11 |
|
| 12 |
Python also provides some built-in data types, in particular, |
| 13 |
:class:`dict`, :class:`list`, :class:`set` (which along with |
| 14 |
:class:`frozenset`, replaces the deprecated :mod:`sets` module), and |
| 15 |
:class:`tuple`. The :class:`str` class can be used to handle binary data |
| 16 |
and 8-bit text, and the :class:`unicode` class to handle Unicode text. |
| 17 |
|
| 18 |
The following modules are documented in this chapter: |
| 19 |
|
| 20 |
|
| 21 |
.. toctree:: |
| 22 |
|
| 23 |
datetime.rst |
| 24 |
calendar.rst |
| 25 |
collections.rst |
| 26 |
heapq.rst |
| 27 |
bisect.rst |
| 28 |
array.rst |
| 29 |
sets.rst |
| 30 |
sched.rst |
| 31 |
mutex.rst |
| 32 |
queue.rst |
| 33 |
weakref.rst |
| 34 |
userdict.rst |
| 35 |
types.rst |
| 36 |
new.rst |
| 37 |
copy.rst |
| 38 |
pprint.rst |
| 39 |
repr.rst |