Print statements not working when serve_forever() is called?
Print statements not working when serve_forever() is called? Question: I have the following small python script to run a local server for testing some html: print(‘opened’) from http.server import HTTPServer, SimpleHTTPRequestHandler server_address = (”, 8000) httpd = HTTPServer(server_address, SimpleHTTPRequestHandler) print("Listening at https://127.0.0.1:8000/ . . .") httpd.serve_forever() When I run this in the terminal, it blocks …