Lichen

tests/read_stream.py

1039:16990afa2754
5 months ago Paul Boddie Eliminated redundant temporary result and attribute reference storage. value-replacement
     1 from sys import stdin     2      3 print "Reading 10 bytes..."     4 s = stdin.read(10)     5 print s     6      7 print "Reading to end of file..."     8 s = stdin.read()     9 print s