rlcompleter2 home
home install issues

Python command line completion - Holger Krekel

One of the best features of python is that you can use and learn it interactively. rlcompleter2 enhances this interactive experience. It is a major improvement over the rlcompleter module in the standard python library. I recommend that you simply install it and see if you like it. User interface is simple: hit <tab> one or more times during typing your python statements. If you sometimes use python interactively you will certainly enjoy it. If you don't work interactively then you should :-)

Please feel free to submit/look at current issues (bugs, features, wishes). You may also send private mail to "hpk at trillke net" though that might get lost more easily.

Features

  • completion on any valid Python statement/expression
  • many convenient completions, for example
      func(<tab>   presents function signatures and docs
      module.<tab> presents module docstring
      func<tab>    completes '(' or '()'
      obj<tab>     completes '.' if obj is module or instance
      r'<tab>      (in raw string) shows regular expression help 
    
  • when you hit <tab> multiple times you will get increasing details about multiple completions
  • the completer tries to autodetect your terminal height and width.
  • shows type information for multiple matches. types are abbreviated by three characters.
  • customaizable via the config class which you can inherit read the source of the Config class.