def __init__(self, uri, default_protocol='telnet'):
        """
        Constructor. The given uri is passed to Host.set_uri().
        The default_protocol argument defines the protocol that is used
        in case the given uri does not specify it.

        :type  uri: string
        :param uri: A hostname; see set_uri() for more info.
        :type  default_protocol: string
        :param default_protocol: The protocol name.
        """
        self.protocol = default_protocol
        self.vars = None    # To save memory, do not init with a dict.
        self.account = None
        self.name = None
        self.address = None
        self.tcp_port = None
        self.options = None
        self.set_uri(uri)
def __init__ ( self , uri , default_protocol = 'telnet' ) : self . protocol = default_protocol self . vars = None self . account = None self . name = None self . address = None self . tcp_port = None self . options = None self . set_uri ( uri )
Constructor. The given uri is passed to Host.set_uri().
        The default_protocol argument defines the protocol that is used
        in case the given uri does not specify it.

        :type  uri: string
        :param uri: A hostname; see set_uri() for more info.
        :type  default_protocol: string
        :param default_protocol: The protocol name.