/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

alexwlchan.net
| | til.simonwillison.net

I figured out how to run a subprocess with a time limit for datasette-ripgrep , using the asyncio.create_subprocess_exec() method. The pattern looks like this:
2.5 parsecs

Travel
| |
| | techtldr.com

Here is a simple trick that I used to restart my python script after unhandled exception. Let's say I have this simple script called test.py that I want to run forever. It will just wait 2 seconds and throw an error. I use the following script called forever in the same directory: It uses python [...]
3.5 parsecs

Travel
| |
| | nabeelvalley.co.za

How to work with modules and handle the 'ModuleNotFoundError: No module named ...' error
3.2 parsecs

Travel
| |
| | www.learnpython.dev

Free Learn Python Course by Nina Zakharenko - An intensive two day introduction and intermediate course on Python. Video course published on Frontend Masters.
25.1 parsecs

Travel
|