[lsb-discuss] language APIs for information from lsb_release?

Wichmann, Mats D mats.d.wichmann at intel.com
Tue Mar 18 19:18:08 PDT 2008


Chris writes:

>I wonder if it would be better to instead specify perl/python
>library interfaces instead of specifying the file format?
>Much like lsb_release then individual distros could decide exactly
>how they want to implement it.

I must say as a Python programmer it would be appealing to be able
to import a module 'lsb' or some similar name and have it provide
the answers for me (including if the import fails, I assume the
LSB Python environment is not installed), so I don't have to write
my own config-file parser. Well, okay, Python has a bundle of
config-file parses, but I still have to write some code around it
to make sense of the answers from parsing an lsb-release file).
But as Matthias points out, making that a requirement means then 
we're stuck coming up with implementations for every language
of interest.

I think there's enough here to put something on one of our lists.




More information about the lsb-discuss mailing list