try: import rlcompleter readline.parse_and_bind("tab: complete") print 'letz go.' del rlcompleter except: print >> sys.err, 'no readline support.'