cgi module

A former standard library module for reading form data in CGI scripts, removed in Python 3.13.

In more detail

The course's scripts use cgi.FieldStorage() and form.getfirst(name, default) as their historical form; on a current interpreter the import fails. urllib.parse.parse_qs can read the query string instead, and the third-party legacy-cgi package restores the old module. Error display uses the traceback module in its place.

Related terms

Taught in

References