Message368517
In issue40570, I learned that some users are still relying on legacy tuple-like behaviors of `platform.uname()`, namely the access by item position and length:
```
platform.uname()[0]
len(platform.uname())
```
I propose to deprecate these behaviors and constrain the supported interface to the following:
```
platform.uname().attribute
items = tuple(platform.uname())
```
In other words, the `uname_result` would only support access of the items by attribute or iteration of all attributes.
Any users wishing to access items by position or to calculate the length of the result would need to explicitly construct a tuple from the result. |
|
Date |
User |
Action |
Args |
2020-05-09 14:06:56 | jaraco | set | recipients:
+ jaraco, lemburg |
2020-05-09 14:06:56 | jaraco | set | messageid: <1589033216.57.0.707246281717.issue40578@roundup.psfhosted.org> |
2020-05-09 14:06:56 | jaraco | link | issue40578 messages |
2020-05-09 14:06:56 | jaraco | create | |
|