Talk:User defined pipe and redirection operators: Difference between revisions

m
→‎more ambitious than unix: re: Python - Thinking aloud...
m (rm dup section)
m (→‎more ambitious than unix: re: Python - Thinking aloud...)
Line 134:
 
 
cat = Filter(catcat_code)
 
def grep_code(pattern, args):
Line 146:
cat("List_of_computer_scientists.lst") | grep("ALGOL") > "ALGOL_pioneers.lst"</lang>
 
So try not using "unixUnix pipes" and "Unix processes".
 
I hope that helps.
 
[[User:NevilleDNZ|NevilleDNZ]] 22:24, 13 September 2011 (UTC)
 
Thinking aloud: Python three+ different ways of achieving this pseudo-piping. Decorators, functional-programming and sub-classing. However overloading the operators is easiest done via a subclass. In Algol (I believe) functional-programming must be used.
 
[[User:NevilleDNZ|NevilleDNZ]] 00:04, 14 September 2011 (UTC)