Introduced the detection of a particular error before its effects cause a less
helpful error later in the deduction process (involving the absence of accessor
types).
1fromsysimportstdin 2 3print"Reading 10 bytes..." 4s=stdin.read(10) 5prints 6 7print"Reading to end of file..." 8s=stdin.read() 9prints