The standard Python library has an HTTP server. There is a desire to implement its full functionality on Android. At the moment, you need to solve problems with the execution of CGI scripts. To do this, you need to work with the function http.server.CGIHTTPRequestHandler.run_cgi ( https://hg.python.org/cpython/file/3.5/Lib/http/server.py#l982 ) How to correctly override this function through the inheritance of the CGIHTTPRequestHandler class? Can I write this:
class MyNewClass(CGIHTTPRequestHandler): def run_cgi(self): < новый код > It is embarrassing that the CGIHTTPRequestHandler class CGIHTTPRequestHandler is an inheritance of the SimpleHTTPRequestHandler class, but it does not use any constructions like super().__init__() or SimpleHTTPRequestHandler.__init__() And generally there is no such structure in the entire server code.