You must log in or register to comment.
My secret to high uptime:
while True: try: main() except: pass
Not necessarily a trick that’s always useful but I always forget this.
You can get async REPL by callingpython -m asyncio
.Also, old trick - in need of simple http server serving static files?
python -m http.server
Using
http.server
is my go-to sanity check method if my configured my network firewall correctly or not.
Don’t need to activate your venv to use it.
Just use
venv/bin/python my-file.py
from a script or a terminal from your project root.You don’t need to use venv at all, break the mold and do it all global