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'm a Sr. Software Engineer at Flashpoint. I specialize in Python and Go, building functional, practical, and maintainable web systems leveraging Kubernetes and the cloud. Blog opinions are my own.
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.
fileinputis basically Python's version of that, and it makes me happy.BTW,
argparseis going to be featured in Part 2!