[issue35346] Modernize Lib/platform.py code

STINNER Victor report at bugs.python.org
Thu Nov 29 17:14:25 EST 2018


STINNER Victor <vstinner at redhat.com> added the comment:

> Please keep Python 2.7 compatibility. It should be possible to copy the module back into Python 2.7 and use it there.

I don't understand why someone would like to copy Lib/platform.py from the master branch to Python 2.7? Python 2.7 already provides the platform module, it's part of its standard library.

platform.linux_distribution() function has been removed from master, so you cannot simply copy platform.py from master and use it in Python 2.7: it has a different API.

----------

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


More information about the Python-bugs-list mailing list