git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE]: PyGit and libgit-thin

From
JHJan 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>
Previous: David KastrupNext: Luiz Fernando N. Capitulino
Message 4 of 5 in “[ANNOUNCE]: PyGit and libgit-thin”
  1. Luiz Fernando N. CapitulinoJul 23, 2007
  2. Yann DirsonJul 25, 2007
  3. David KastrupJul 25, 2007
  4. Jan HudecJul 25, 2007
  5. Luiz Fernando N. CapitulinoJul 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.