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

Re: [PATCH] Python scripts audited for minimum compatible version and checks added.

From
Manlio Perillo <manlio.perillo@gmail.com>
Date
Dec 21, 2012, 15:58 UTC
Message-ID
<50D4873A.6060501@gmail.com>
In-Reply-To
<20121220141855.05DAA44105@snark.thyrsus.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 20/12/2012 15:13, Eric S. Raymond ha scritto:
> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
> ---

Just my two cents. Isn't it better to have some core Python support inside a "python/" directory in the git source tree (e.g. e simple python/git.py), and have *all* python code import that module?

Then you can impose a reasonable version limitation (e.g. Python >= 2.5) inside that module (and/or inside its setup.py file).

Another advantage is that the python/git.py module can contain some very base support for interfacing git plumbing commands, instead of having all internal (and external) modules reinventing the wheel.

I'm writing an external command for Git, and I do plan to write such a package, so that I don't have to reimplement all the base support in my command source code.

Regards   Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDUhzoACgkQscQJ24LbaUQFuQCfb6QgkJHdxQSEB7nLXMN8TSmI 6/IAn3svylllaIBQfZKf0lEzNBtZJQMK =Ar20 -----END PGP SIGNATURE-----

Previous: Eric S. RaymondNext: Pete Wyckoff
Message 8 of 12 in “Python scripts audited for minimum compatible version and checks added.”
  1. Python scripts audited for minimum compatible version and checks added.Eric S. Raymond, Dec 20, 2012
  2. Jeff KingDec 20, 2012
  3. Eric S. RaymondDec 20, 2012
  4. Junio C HamanoDec 20, 2012
  5. Junio C HamanoDec 21, 2012
  6. Junio C HamanoDec 24, 2012
  7. Eric S. RaymondDec 24, 2012
  8. Manlio PerilloDec 21, 2012
  9. Pete WyckoffDec 24, 2012
  10. Eric S. RaymondDec 24, 2012
  11. Junio C HamanoDec 24, 2012
  12. Eric S. RaymondDec 24, 2012

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.