Historical and Removed Modules
cgi
Removed from the standard library in Python 3.13; historical example targets Python 3.12. Parsed CGI request data, including form fields and multipart submissions. Use a maintained web framework for request handling, urllib.parse for bounded URL-encoded query strings, and appropriate multipart parsers. Do not equate query parsing with secure upload handling.
Formal Syntax & Structure
python syntaxpython
import cgi # 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 cgiprint(callable(cgi.FieldStorage))