3 ms·
> Nowadays I use Python for complex scripts, but it's not the same as a language with native support for redirection and pipes! While this is no doubt right, I
by olau 4y ago
> Nowadays I use Python for complex scripts, but it's not the same as a language with native support for redirection and pipes!
While this is no doubt right, I think you could build a little abstraction that simplified piping syntax considerable. The subprocess module is not terribly convenient, although it has gotten less confusing over the years.
Python does have operator overloading, so you could even make it fancy.
- BiteCode_dev 4y agoThere are a lot og libs that do that, but few people use them because it's not native to the language. This is an important point for scripting as nobody wants to setup a venv to run a simple script. Zippapp are a solutions to that but most people don't know abot them. Also, it's not convenient enough to make at the moment.