I couldn't find anything on this subject on Google, so I think I should ask it here:
Is it possible to chain functions with Python, like jQuery does?
['my', 'list'].foo1(arg1, arg2).foo2(arg1, arg2).foo3(arg1, arg2) #etc...
I am losing a lot of space and readability when I write this code:
foo3(foo2(foo1(['my', 'list'], arg1, arg2), arg1, arg2), arg1, arg2) #etc...
There seems to exist some illusive library for creating such functions, but I can't seem to see why this has to be so complicated-looking...
Thanks!