spacepaste

  1.  
  2. import _io
  3. fio = _io.FileIO(0)
  4. buf = bytearray(128)
  5. print(fio.readinto(buf))
  6. print(repr(buf))
  7. #if buf[0] == 0:
  8. # while True:
  9. # pass
  10. #print('end')
  11.