Simon Willison on Twitter: "Updated version: this one calls proc.kill() to terminate the process if it takes longer than the timeout https://t.co/FGCaz44tl2" / Twitter
Simon Willison on Twitter: "Python people: I've discovered a pattern for executing Python code in a subprocess with a time limit. Is there a cleaner way of doing this? It's the simplest thing I've found that appears to work. https://t.co/gyUiFMhn1p https: