I just started learning python and am writing my own tab completion function for practice / fun (so no one tells me rlcompleter). I am having some problems getting python to call a function. My code is:
import readline def tab_completer(): print readline.get_line_buffer() readline.parse_and_bind("tab: tab_completer") while True: raw_input("Prompt")
the expected result is that when I press the tab key, it prints what itβs ever typed, no matter what, what actually happens, any tips?
python readline tab-completion
Trcx
source share