Keith Devens .com |
Saturday, September 6, 2008 | ![]() |
| LOOT THE DOG – anyone who's ever raided MC | ||
|
| ← A. Sundararajan's Weblog: Simple JavaScripting from Java | Python's inspect module → |

Adam Vandenberg (http://adamv.com/) wrote:
Keith (http://keithdevens.com/) wrote:
That's not the same. First, it'd be xreadlines(), but second, that requires an input redirection. It's different than the "slurp all files provided on the command line" mojo that Perl's while(<>){} does.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.313s.
(Used 8 db queries)

#!/usr/bin/env python
import sys
for line in sys.stdin.readlines():
print ">>"+line.rstrip()+"<<";