Added an explicit size member to __attr for strings, eliminated strlen usage,
replaced strncpy usage with memcpy, permitting strings with zero bytes to be
stored and manipulated.
1fromsysimportstdin 2 3print"Reading 10 bytes..." 4s=stdin.read(10) 5prints 6 7print"Reading to end of file..." 8s=stdin.read() 9prints