Re: how is the readline set_completer function suppose to work

2019-05-08 Thread Peter Otten
sinbad.sin...@gmail.com wrote: > 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. > > $python > import readline def test(): > ... print("test") > ... test() > test print(help(readl

how is the readline set_completer function suppose to work

2019-05-08 Thread sinbad . sinbad
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. $python >>> import readline >>> def test(): ... print("test") ... >>> test() test >>> print(help(readline)) None >>> readline.set_completer(test) >>> ra