Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 2f5946c68c34ba38850cc89ef604b7c2 > files > 4

python-2.6.5-2.5mdv2010.2.i586.rpm

try:
    # this add completion to python interpreter
    import readline
    import rlcompleter
    # see readline man page for this
    readline.parse_and_bind("set show-all-if-ambiguous on")
    readline.parse_and_bind("tab: complete")
except:
    pass
# you can place a file .pythonrc.py in your home to overrides this one
# but then, this file will not be sourced