code: def get_serial_port(self, slot):
          
          if not isinstance(slot, baseinteger):
              raise TypeError("slot can only be an instance of type baseinteger")
          port = self._call("getSerialPort",
                       in_p=[slot])
          port = ISerialPort(port)
          return port
docs: Returns the serial port associated with the given slot.
          Slots are numbered sequentially, starting with zero. The total
          number of serial ports per machine is defined by the
          :py:func:`ISystemProperties.serial_port_count`  property,
          so the maximum slot number is one less than that property's value.
  
          in slot of type int
  
          return port of type :class:`ISerialPort`
  
          raises :class:`OleErrorInvalidarg`
              Invalid @a slot number.