]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91038: Change default argument value to `False` instead of `0` (#31621)
authorRotzbua <Rotzbua@users.noreply.github.com>
Mon, 27 Feb 2023 02:10:34 +0000 (03:10 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Feb 2023 02:10:34 +0000 (18:10 -0800)
commitf3cb15c88afa2e87067de3c6106664b3f7cd4035
treeb92288b92447fbf4d78e6fb702b36d7bb7bde6d0
parent8d0f09b1beafd95763a5da53acc58dac0bd63a53
gh-91038: Change default argument value to `False` instead of `0` (#31621)

The argument is used as a switch and corresponds to a boolean logic. Therefore it is more intuitive to use the corresponding constant `False` as default value instead of the integer `0`.

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Doc/library/platform.rst
Lib/platform.py
Misc/NEWS.d/next/Library/2023-02-26-12-37-17.gh-issue-91038.S4rFH_.rst [new file with mode: 0644]