Monthly Archives: July 2011

HOW TO detect STDIN with Python

In Python, as with most languages, STDIN is treated like a file. You can read from it any time, but knowing what kind of file it is lets us know if someone passed us something via STDIN or if we … Continue reading

Posted in How Tos, Programming, python | 2 Comments