Message414198
Problem:
Both arguments `aliased` and `terse` should be boolean instead of integer.
Description:
The function is as `platform.platform(aliased=0, terse=0)` so both arguments `aliased` and `terse` seems to be numbers.
The documentation says: "If aliased is true,[..]" which gives a hint that the type should be boolean instead of an integer.
Looking into the implementation both arguments used as boolean.
Solution:
Update documentation and set default argument values to `False` instead of `0`.
Reference:
Current documentation: https://docs.python.org/3.11/library/platform.html#platform.platform |
|
Date |
User |
Action |
Args |
2022-02-28 14:28:31 | Rotzbua | set | recipients:
+ Rotzbua, docs@python |
2022-02-28 14:28:31 | Rotzbua | set | messageid: <1646058511.8.0.677652153168.issue46882@roundup.psfhosted.org> |
2022-02-28 14:28:31 | Rotzbua | link | issue46882 messages |
2022-02-28 14:28:31 | Rotzbua | create | |
|