Re: [ANNOUNCE]: PyGit and libgit-thin
- From
- Jan Hudec <bulb@ucw.cz>
- Date
- Jul 25, 2007, 21:21 UTC
- Message-ID
- <20070725212143.GB3808@efreet.light.src>
- In-Reply-To
- <85odi08ddk.fsf@lola.goethe.zz>
On Wed, Jul 25, 2007 at 21:57:59 +0200, David Kastrup wrote:
Show 5 quoted lines
> 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 <bulb@ucw.cz>