def set_completer(completionfunction = None):
    class DerivedCompleter (ReadlineCompleter):
        def __init__ (self, method):
             self.method = method

        def completer (self, text, state):
             return self.method(text, state)

    Readline.setCompleter(DerivedCompleter(completionfunction))
If a package has been explicitly forbidden from importing by setting a
dataset/ETHPy150Open babble/babble/include/jython/Lib/readline.py/set_completer--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_modules.py/BasicTests.test_unimportablePackageWalkModules