def enable_tab_completion(unused_command):
 libedit = ('libedit' in readline.__doc__)
 command = ('bind ^I rl_complete' if libedit else 'tab: complete')
 readline.parse_and_bind(command)

def enable_tab_completion ( unused_command ) : libedit = ( 'libedit' in readline . __doc__ ) command = ( 'bind ^I rl_complete' if libedit else 'tab: complete' ) readline . parse_and_bind ( command )
enables readline tab completion using the system specific syntax .