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.
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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!