def fileno(self):
        if not self.is_open:
            raise portNotOpenError
        return self.fd
For easier use of the serial port instance with select.
dataset/ETHPy150Open pyserial/pyserial/serial/serialposix.py/Serial.fileno