Get the latest tech news
Uvtrick
This "fun party trick" by Vincent D. Warmerdam is absolutely brilliant and a little horrifying. The following code: <pre><span class="pl-k">from</span> <span class="pl-s1">uvtrick</span> <span class="pl-k">import</span> <span class="pl-v">Env</span> <span class="pl-k">def</span> <span class="pl-en">uses_rich</span>(): …
uvtrick( via) This "fun party trick" by Vincent D. Warmerdam is absolutely brilliant and a little horrifying. It's taking advantage of the fact that uv is so fast that the overhead of getting this to work is low enough for it to be worth at least playing with the idea. Having created the temporary Python file it executes the program using a command something like this:
Or read this on Hacker News