Lichen

tests/name_encoding.py

343:e0879c83a439
2016-12-07 Paul Boddie Added support for reading to the end of a stream's input, fixing EOFError raising in fread by returning shorter amounts of data when EOF occurs, only raising an exception if no data was read before EOF occurred. Made the test input longer to exercise tests of reading remaining data.
     1 class C:     2     def f(self):     3         return 1     4      5 def C_f():     6     return 2     7      8 def C__f():     9     return 3    10     11 c = C()    12 print c.f()    13 print C_f()    14 print C__f()