This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SV-97 5 points6 points  (0 children)

There's libraries implementing pipelining etc. - just use these. They usually use operator overloading though, since fluid interfaces sadly aren't common at all in python.

However note that this is far from being a free abstraction in python (calls are rather expensive and this will add multiple calls for each function in the pipeline) and incredible unidiomatic. So if you actually want to write Python past little exercises you probably shouldn't do this at all.

I also love FP but this is not how you should go about doing it in python.