[issue40578] Deprecate numeric item access for platform.uname()
Jason R. Coombs
report at bugs.python.org
Sat May 9 10:33:07 EDT 2020
Jason R. Coombs <jaraco at jaraco.com> added the comment:
In https://github.com/jaraco/cpython/tree/bc73729eb9, I started drafting a proposed implementation to address this concern, but ran into a snag - the tests immediately reveal that `tuple(platform.uname())` invokes `__len__`, triggering the deprecation warning... so deprecating it while supporting `tuple(result)` may not be possible.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40578>
_______________________________________
More information about the Python-bugs-list
mailing list