已被取代的模組¶
此章節所描述的模組在大多數使用情況下已被其他模組取代,僅為了向後相容性而被保留下來。
Modules may appear in this chapter because they only cover a limited subset of
a problem space, and a more generally applicable solution is available elsewhere
in the standard library (for example, getopt
covers the very specific
task of "mimic the C getopt()
API in Python", rather than the broader
command line option parsing and argument parsing capabilities offered by
optparse
and 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.