(key)
Print all the one-line module summaries that contain a substring.
Print all the one-line module summaries that contain a substring.
Print all the one - line module summaries that contain a substring .
def apropos(key):
    """Print all the one-line module summaries that contain a substring."""
    def callback(path, modname, desc):
        if modname[-9:] == '.__init__':
            modname = modname[:-9] + ' (package)'
        print(modname, desc and '- ' + desc)
    def onerror(modname):
        pass
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore') # ignore problems during import
        ModuleScanner().run(callback, key, onerror=onerror)
def apropos ( key ) : def callback ( path , modname , desc ) : if modname [ - 9 : ] == '.__init__' : modname = modname [ : - 9 ] + ' (package)' print ( modname , desc and '- ' + desc ) def onerror ( modname ) : pass with warnings . catch_warnings ( ) : warnings . filterwarnings ( 'ignore' ) # ignore problems during import ModuleScanner ( ) . run ( callback , key , onerror = onerror )