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>
string is returned if the value cannot be determined.
-.. function:: platform(aliased=0, terse=0)
+.. function:: platform(aliased=False, terse=False)
Returns a single string identifying the underlying platform with as much useful
information as possible.
_platform_cache = {}
-def platform(aliased=0, terse=0):
+def platform(aliased=False, terse=False):
""" Returns a single string identifying the underlying platform
with as much useful information as possible (but no more :).
--- /dev/null
+:meth:`platform.platform` now has boolean default arguments.