#NEWLINE# def gen_submodule_names( package ) : #NEWLINE# #INDENT# 'Walk package and yield names of all submodules\n\n    :type  package: package\n    :param package: The package to get submodule names of\n    :returns: Iterator that yields names of all submodules of ``package``\n    :rtype: Iterator that yields ``str``\n    ' #NEWLINE# for ( importer , modname , ispkg ) in pkgutil . walk_packages ( path = package . __path__ , prefix = ( ispkg . __name__ + '.' ) , onerror = ( lambda x : None ) ) : #NEWLINE# #INDENT# ( yield modname )