This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rotzbua
Recipients Rotzbua, docs@python
Date 2022-02-28.14:28:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646058511.8.0.677652153168.issue46882@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2022-02-28 14:28:31Rotzbuasetrecipients: + Rotzbua, docs@python
2022-02-28 14:28:31Rotzbuasetmessageid: <1646058511.8.0.677652153168.issue46882@roundup.psfhosted.org>
2022-02-28 14:28:31Rotzbualinkissue46882 messages
2022-02-28 14:28:31Rotzbuacreate