Am Montag, den 07.11.2011, 17:10 -0500 schrieb Andrew Starr-Bochicchio:
> Distro info allows you to get the release version number by passing the "--
> release" flag:
>
> $ distro-info --stable --release
> 11.10
>
> It would be nice to access the same info easily from python-distro-info. For
> instance, something like:
>
> >>> from distro_info import UbuntuDistroInfo
> >>> UbuntuDistroInfo().stable()
> 'oneiric'
> >>> UbuntuDistroInfo().stable("version")
> '11.10'
>
> Attached patch is not really complete. I'm hoping for some review/feedback
> before proceeding further.Your patch looks like a very straight solution. Passing a string to filter the result can lead to problems if we want to change the data structure in the future. Maybe it's better to pass a function name instead of a string. Then we can update the function when we change the data structure. -- Benjamin Drung Debian & Ubuntu Developer
signature.asc
Description: This is a digitally signed message part

