3 ms·
I was wondering about that too. CGI is still just about the easiest and most universally supported way to serve dynamic web content from a Python script. The
by zestyping 7y ago
I was wondering about that too. CGI is still just about the easiest and most universally supported way to serve dynamic web content from a Python script.
The complaint is that the module is designed poorly, which is fair; to remove CGI support without any "batteries included" replacement seems a bit of a shame, though.
- skykooler 7y agoEspecially as, if you're in a situation where you have to use CGI rather than a better server worker solution, you probably also don't have access to the environment to install pip packages.
- mjw1007 7y agoThe cgi module doesn't actually contain anything CGI-specific. It dates from a time when "CGI" was a sensible shorthand for "handling http requests". What's actually in the module is a rather clunky, but serviceable, system for processing html form data.