(self)
Returns an iterator of 2-tuples (config_name, value), one for each
        configuration option in this config. This is more-or-less an
        internal method, but see, e.g., launch_tor()'s implementation
        if you think you need to use this for something.

        See :meth:`txtorcon.TorConfig.create_torrc` which returns a
        string which is also a valid ``torrc`` file
Returns an iterator of 2-tuples (config_name, value), one for each
        configuration option in this config. This is more-or-less an
        internal method, but see, e.g., launch_tor()'s implementation
        if you think you need to use this for something.
Returns an iterator of 2 - tuples ( config_name value ) one for each configuration option in this config . This is more - or - less an internal method but see e . g . launch_tor () s implementation if you think you need to use this for something .
def config_args(self):
        '''
        Returns an iterator of 2-tuples (config_name, value), one for each
        configuration option in this config. This is more-or-less an
        internal method, but see, e.g., launch_tor()'s implementation
        if you think you need to use this for something.

        See :meth:`txtorcon.TorConfig.create_torrc` which returns a
        string which is also a valid ``torrc`` file
        '''

        everything = dict()
        everything.update(self.config)
        everything.update(self.unsaved)

        for (k, v) in list(everything.items()):
            if type(v) is _ListWrapper:
                if k.lower() == 'hiddenservices':
                    for x in v:
                        for (kk, vv) in x.config_attributes():
                            yield (str(kk), str(vv))

                else:
                    # FIXME actually, is this right? don't we want ALL
                    # the values in one string?!
                    for x in v:
                        yield (str(k), str(x))

            else:
                yield (str(k), str(v))
def config_args ( self ) : everything = dict ( ) everything . update ( self . config ) everything . update ( self . unsaved ) for ( k , v ) in list ( everything . items ( ) ) : if type ( v ) is _ListWrapper : if k . lower ( ) == 'hiddenservices' : for x in v : for ( kk , vv ) in x . config_attributes ( ) : yield ( str ( kk ) , str ( vv ) ) else : # FIXME actually, is this right? don't we want ALL # the values in one string?! for x in v : yield ( str ( k ) , str ( x ) ) else : yield ( str ( k ) , str ( v ) )