Message414199
> Both arguments `aliased` and `terse` should be boolean instead of integer.
Why should they be strictly True/False booleans? I disagree strongly that they should be. Any object that duck-types as a true or false value is sufficient.
Treated as a documentation change, your PR is wrong because it implies that *only* the singletons `True` and `False` are acceptable, when in fact any true and false (note the lowercase) values are acceptable.
Personally, I prefer the terms "truthy" and "falsey", or "a true value" and "a false value" over a bare true/false, but some people do not, and it is a long-standing tradition in Python circles to understand lowercase true/false as the duck-typed values as opposed to the `True` and `False` bool singletons. |
|
Date |
User |
Action |
Args |
2022-02-28 14:49:34 | steven.daprano | set | recipients:
+ steven.daprano, docs@python, Rotzbua |
2022-02-28 14:49:34 | steven.daprano | set | messageid: <1646059774.35.0.903635655114.issue46882@roundup.psfhosted.org> |
2022-02-28 14:49:34 | steven.daprano | link | issue46882 messages |
2022-02-28 14:49:34 | steven.daprano | create | |
|