8. Data TypesΒΆ
The modules described in this chapter provide a variety of specialized data types such as dates and times, fixed-type arrays, heap queues, synchronized queues, and sets.
Python also provides some built-in data types, in particular,
dict, list, set (which along with
frozenset, replaces the deprecated sets module), and
tuple. The str class can be used to handle binary data
and 8-bit text, and the unicode class to handle Unicode text.
The following modules are documented in this chapter:
- 8.1.
datetimeβ Basic date and time types - 8.2.
calendarβ General calendar-related functions - 8.3.
collectionsβ High-performance container datatypes - 8.4.
heapqβ Heap queue algorithm - 8.5.
bisectβ Array bisection algorithm - 8.6.
arrayβ Efficient arrays of numeric values - 8.7.
setsβ Unordered collections of unique elements - 8.8.
schedβ Event scheduler - 8.9.
mutexβ Mutual exclusion support - 8.10.
Queueβ A synchronized queue class - 8.11.
weakrefβ Weak references - 8.12.
UserDictβ Class wrapper for dictionary objects - 8.13.
UserListβ Class wrapper for list objects - 8.14.
UserStringβ Class wrapper for string objects - 8.15.
typesβ Names for built-in types - 8.16.
newβ Creation of runtime internal objects - 8.17.
copyβ Shallow and deep copy operations - 8.18.
pprintβ Data pretty printer - 8.19.
reprβ Alternaterepr()implementation
