Author lemburg
Recipients christian.heimes, cstratak, doko, lemburg, matrixise, pmpp, r.david.murray, vstinner
Date 2020-11-25.10:39:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <23c73114-4011-c29a-ea0d-015f2d7b73cf@egenix.com>
In-reply-to <1606299216.13.0.135485145104.issue28468@roundup.psfhosted.org>
Content
On 25.11.2020 11:13, STINNER Victor wrote:
> Platform was always a thin wrapper to OS functions. For example, there is no unified API to retrieve OS name and version on Windows, macOS or Linux. You need to pick the proper function. For me, freedesktop_os_release() just follows this trend.

Not really. We have functions per OS, but not functions which only work
on a subset of distros of an OS.

The patch also has other issues:

A text file parse could be a private function in the module,
but it doesn't fit the platform module API spirit.

platform module APIs should return meaningful information and
provide defaults where these cannot be determined. Accordingly,
an API would have to return a tuple (distname, version, id), just
like linux_distribution() did.

Regardless, I don't see the point of opening up this can of
worms again. We settled on moving Linux distribution version detection
out of the stdlib and that was a good decision.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Nov 25 2020)
>>> Python Projects, Coaching and Support ...    https://www.egenix.com/
>>> Python Product Development ...        https://consulting.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               https://www.egenix.com/company/contact/
                     https://www.malemburg.com/
History
Date User Action Args
2020-11-25 10:39:34lemburgsetrecipients: + lemburg, doko, vstinner, christian.heimes, r.david.murray, pmpp, matrixise, cstratak
2020-11-25 10:39:34lemburglinkissue28468 messages
2020-11-25 10:39:34lemburgcreate