how is the readline set_completer function suppose to work

sinbad.sinbad at sinbad.sinbad at
Wed May 8 07:19:15 EDT 2019

Below i was expecting the test() function to be called, but it doesn't. Am i doing it wrong?
By the way i'm running version 2.7.10 on a mac.


>>> import readline
>>> def test():
...   print("test")
>>> test()
>>> print(help(readline))

>>> readline.set_completer(test)
>>> raw_input()


More information about the Python-list mailing list