hello there guys. im quite confused regarding the use of pyserial classes. ive been reading up on the pyserial documentation. i followed an example and used the code below
import serial
ser = serial.Serial (0 , baudrate = 57600 , timeout = 1) #open serial port (1) - 1
line = ser.readline()
ser.close()
i then checked the pyserial api documentation and found that readline is of the class FileLike http://pyserial.sourceforge.net/pyserial_api.html#serial.FileLike.readline
how is this then possible that one can use the objects(?) from a different class?