yesthattom: (Default)
[personal profile] yesthattom
In perl you can use <> to mean "read one line at a time from each file in ARGV or just stdin if no files are listed". It is wonderful because in 2 keystrokes you get functionality that is similar to how Unix tools like cat, grep, and many others work.

Is there a similar thing in Python? I can't find it.

Tom
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 17th, 2025 02:46 pm
Powered by Dreamwidth Studios