[issue40578] Deprecate numeric item access for platform.uname()
Marc-Andre Lemburg
report at bugs.python.org
Wed May 13 04:03:33 EDT 2020
Marc-Andre Lemburg <mal at egenix.com> added the comment:
I am closing this issue, since deprecations should really only be used when no other means are possible.
The namedtuples returned by platform.uname() do support index access and so any implementation change altering this is surprising and backwards incompatible, potentially breaking existing code which makes reasonable use of the index interface (the namedtuple and processor attribute was introduced in Python 3.3, so code written for prior versions may well still use the perfectly reasonable index approach).
You are essentially suggesting to change the return type, since you want to remove a standard tuple interface.
----------
resolution: -> rejected
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40578>
_______________________________________
More information about the Python-bugs-list
mailing list