DEV Community

Discussion on: Python Scripting Toolbox: sys and fileinput

Collapse
vguarnaccia profile image
Vincent Guarnaccia

Great! As someone who uses pipes extensively in scripts, I feel that fileinput is underappreciated in the Python world. Argparse+fileinput is a great combo.

Collapse
rpalo profile image
Ryan Palo Author

I know, I just discovered it. When I'm writing Ruby scripts, I really love having the ARGF. fileinput is basically Python's version of that, and it makes me happy.

BTW, argparse is going to be featured in Part 2!