STINNER Victor <vstin...@python.org> added the comment:
Matthias Klose: > There's no need to expose a second implementation as another API in the > standard library. When linux_distribution() has been removed, platform.platform() became less useful. Example: $ python2 -m platform Linux-5.9.8-200.fc33.x86_64-x86_64-with-fedora-33-Thirty_Three $ python3 -m platform Linux-5.9.8-200.fc33.x86_64-x86_64-with-glibc2.32 Python 2 provides *more* information than Python 3. I see this as a regression. It would be great if we could again add again the Linux distribution name and vresion in platform.platform(). For example, I'm using platform.platform() on buildbots to quickly identify on which operating systems an issue happens: see test.pythoninfo script ("make pythoninfo" used by buildbots). Right now, it's annoying to have to manually dig into the buildbot worker details to get informations, usually outdated (when the machine is upgraded, but not the worker description). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue28468> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com