Superseded Modules

The modules described in this chapter have been superseded by other modulesfor most use cases, and are retained primarily to preserve backwards compatibility.

Modules may appear in this chapter because they only cover a limited subset ofa problem space, and a more generally applicable solution is available elsewherein the standard library (for example,getopt covers the very specifictask of “mimic the Cgetopt() API in Python”, rather than the broadercommand line option parsing and argument parsing capabilities offered byoptparse andargparse).

Alternatively, modules may appear in this chapter because they are deprecatedoutright, and awaiting removal in a future release, or they aresoft deprecated and their use is actively discouraged in new projects.With the removal of various obsolete modules throughPEP 594, there arecurrently no modules in this latter category.