[issue28468] Add platform.freedesktop_osrelease()

Christian Heimes report at bugs.python.org
Wed Nov 25 04:39:08 EST 2020


Christian Heimes <lists at cheimes.de> added the comment:

> It would be an interface to a file /etc/os-release
> that's common nowadays, just like /etc/lsb-release was some years
> ago. These things change too often to make the stdlib a good fit.
> I'm pretty sure distros will invent something new in 5 years which
> would then render the API mostly useless again.

That's pointless speculation -- unless you found a fool-proof way to see into the future.

Where do you draw the line? Should the stdlib ignore any standard and API that is less than 10 years old? 20 years?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28468>
_______________________________________


More information about the Python-bugs-list mailing list