On Wed, Jul 25, 2007 at 21:57:59 +0200, David Kastrup wrote:
Nicer to use if the commands and their options originate from withing
Python. But if Python parses arguments from somewhere else and passes
them on, the former interface leads to much cleaner code AFAICS.
Pasting together a named argument call piecemeal is not going to be
pretty, I should think.
You just put all the arguments in a dict and use the ** syntax. And if you
already get the arguments in a dict from the parser, it's even nicer.
--
Jan 'Bulb' Hudec [off-list ref]