他のモジュールに置き換えられたモジュール¶
この章で説明するモジュールは、ほとんどの用途で他のモジュールに置き換えられており、主に後方互換性を保つために残されています。
この章には、問題の限られた範囲だけを扱い、標準ライブラリの別の場所にもっと広く適用できる解決策があるモジュールが含まれることがあります。
例えば getopt は「C の getopt() API を Python で模倣する」という限定的な用途を扱います。
optparse や argparse が提供する、より幅広いコマンドラインオプションや引数の解析機能を提供するものではありません。
Alternatively, modules may appear in this chapter because they are deprecated outright, and awaiting removal in a future release, or they are soft deprecated and their use is actively discouraged in new projects. With the removal of various obsolete modules through PEP 594, there are currently no modules in this latter category.