ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
15. Optional Operating System Services
15.8 rlcompleter -- Completion function for GNU readline
15.8.1 Completer Objects

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 15. Optional Operating System Services >> 15.8 rlcompleter -- Completion function for GNU readline
ActivePython 2.5 documentation


15.8.1 Completer Objects

Completer objects have the following method:

complete( text, state)
Return the stateth completion for text.

If called for text that doesn't include a period character ("."), it will complete from names currently defined in __main__, __builtin__ and keywords (as defined by the keyword module).

If called for a dotted name, it will try to evaluate anything without obvious side-effects (functions will not be evaluated, but it can generate calls to __getattr__()) up to the last part, and find matches for the rest via the dir() function.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved