tests/read_localised.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/read_localised.py Sat Dec 17 00:11:52 2016 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +from sys import lstdin 1.5 + 1.6 +print lstdin 1.7 +print lstdin.encoding 1.8 +print "Reading 10 bytes..." 1.9 +s = lstdin.read(10) 1.10 +print s 1.11 + 1.12 +print "Reading to end of file..." 1.13 +s = lstdin.read() 1.14 +print s