News for hackers. Stuff that matters.
Re:Bash $* and $@ (2017) by ehsankia on Sunday January 12, 2020 @02:52PM (#22028753)
Why not use | as the pipe operator? Just use __or__ instead of __add__

I have done something similar too once in a shell-like Python CLI I worked on. Can also use __ror__ to be able to pass primitives into your commands like `[1, 2, 3] | SumCmd() | PrintCmd()`

I do agree that typing something like that, especially when working in a shell, is much nicer than having to go back and forth all the time to type `print(sum([1,2,3]))`

Here it is mentioned in a talk about Python Aesthetics by Brandon Rhodes: https://www.youtube.com/watch?v=x-kB2o8sd5c&t=8m24s

Re:Bash $* and $@ (2017) by pinopinopino on Monday January 13, 2020 @03:47AM (#22032860)
Oh that is possible? I am not that deep into python honestly. Looks much neater to use |.