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/ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com