Adding code and methods to a class dynamically

Sarir Khamsi sarir.khamsi at raytheon.com
Fri Jul 29 16:56:57 EDT 2005


Peter Hansen <peter at engcorp.com> writes:

> I'm not sure what "completion" means in this case, and I'm not aware
> of any "command-line completion" support in cmd.Cmd though it may well
> be there, so I can't say.  Certainly there is nothing in any way
> different about the new attribute created by the alias code, as both
> it and the original attribute are bound to exactly the same method.

If you have the readline module, you get TAB command completion for
free (a la bash, emacs, etc)...or maybe readline only gives you
emacs-style command history editing, or both...not sure.



More information about the Python-list mailing list