Historical and Removed Modules
mailcap
Removed from the standard library in Python 3.13; historical example targets Python 3.12. Looked up MIME-type handling commands using mailcap configuration. A maintained application-specific handler registry is preferable; never run untrusted mailcap commands or interpolate filenames into shell commands. MIME detection and command dispatch are separate responsibilities.
Formal Syntax & Structure
python syntaxpython
import mailcap # Historical only: removed in Python 3.13Return Value
module (historical)
Historical module namespace, not a supported standard-library import on the Python 3.13 baseline.
Working Example
Example Snippetpython
# Historical example: Python 3.12; not executed.import mailcapprint(callable(mailcap.findmatch))