Lichen

tests/read_localised.py

588:316c1c90b643
2017-02-17 Paul Boddie Eliminated superfluous accessor instructions loading static invocation targets. Added a test of nested calls employing explicitly retained contexts. method-wrapper-for-context
     1 from sys import lstdin     2      3 print lstdin                        # <libc.io.sysstream instance>     4 print lstdin.encoding               # ISO-8859-15     5 print "Reading 10 bytes..."     6 s = lstdin.read(10)     7 print s     8      9 print "Reading to end of file..."    10 s = lstdin.read()    11 print s