データ型
********

この章で解説されるモジュールは日付や時間、型が固定された配列、ヒープキ
ュー、両端キュー、列挙型のような種々の特殊なデータ型を提供します。

Python にはその他にもいくつかの組み込みデータ型があります。特に、
"dict" 、 "list" 、 "set" 、 "frozenset" 、そして "tuple" があります。
"str" クラスは Unicode データを扱うことができ、 "bytes" と "bytearray"
クラスはバイナリデータを扱うことができます。

この章では以下のモジュールが記述されています:

* "datetime" --- Basic date and time types

  * Aware オブジェクトと Naive オブジェクト

  * 定数

  * 利用可能なデータ型

    * 共通の特徴

    * オブジェクトが Aware なのか Naive なのかの判断

  * "timedelta" オブジェクト

    * 使用例: "timedelta"

  * "date" オブジェクト

    * 使用例: "date"

  * "datetime" オブジェクト

    * 使用例: "datetime"

  * "time" オブジェクト

    * 使用例: "time"

  * "tzinfo" オブジェクト

  * "timezone" オブジェクト

  * "strftime()" と "strptime()" の振る舞い

    * "strftime()" と "strptime()" の書式コード

    * 技術詳細

* "zoneinfo" --- IANA time zone support

  * "ZoneInfo" を使用する

  * データソース

    * Configuring the data sources

      * Compile-time configuration

      * Environment configuration

      * Runtime configuration

  * "ZoneInfo" クラス

    * 文字列表現

    * Pickle serialization

  * 関数

  * Globals

  * 例外と警告

* "calendar" --- General calendar-related functions

  * コマンドラインからの使用

* "collections" --- Container datatypes

  * "ChainMap" オブジェクト

    * "ChainMap" の例とレシピ

  * "Counter" オブジェクト

  * "deque" オブジェクト

    * "deque" のレシピ

  * "defaultdict" オブジェクト

    * "defaultdict" の使用例

  * "namedtuple()" 名前付きフィールドを持つタプルのファクトリ関数

  * "OrderedDict" オブジェクト

    * "OrderedDict" の例とレシピ

  * "UserDict" オブジェクト

  * "UserList" オブジェクト

  * "UserString" オブジェクト

* "collections.abc" --- Abstract Base Classes for Containers

  * コレクション抽象基底クラス

  * コレクションの抽象基底クラス -- 詳細な説明

  * 例とレシピ

* "heapq" --- Heap queue algorithm

  * 基本的な例

  * 優先度キュー実装の注釈

  * 理論

* "bisect" --- Array bisection algorithm

  * パフォーマンスに関するメモ

  * ソート済みリストの探索

  * 使用例

* "array" --- Efficient arrays of numeric values

* "weakref" --- 弱参照

  * 弱参照オブジェクト

  * 使用例

  * ファイナライザオブジェクト

  * Comparing finalizers with "__del__()" methods

* "types" --- Dynamic type creation and names for built-in types

  * 動的な型生成

  * 標準的なインタプリタ型

  * 追加のユーティリティクラスと関数

  * コルーチンユーティリティ関数

* "copy" --- Shallow and deep copy operations

* "pprint" --- Data pretty printer

  * 関数

  * PrettyPrinter オブジェクト

  * 使用例

* "reprlib" --- Alternate "repr()" implementation

  * Reprオブジェクト

  * Reprオブジェクトをサブクラス化する

* "enum" --- Support for enumerations

  * モジュールコンテンツ

  * データ型

    * "__dunder__" 名のサポート

    * "_sunder_" 名のサポート

  * ユーティリティとデコレータ

  * 注釈

* "graphlib" --- Functionality to operate with graph-like structures

  * 例外
