Skip to content

Commit 39cfdb9

Browse files
committed
Clarification
1 parent be9425b commit 39cfdb9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎peps/pep-0824.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,10 @@ higher than ``or`` would mean that ``or "Guest"`` is evaluated even
612612
though a valid value was already supplied.
613613

614614
The altered precedence would break the assumption that ``??`` can
615-
short-circuit a boolean expression also containing ``or`` for valid but
616-
falsy values, without explicit parentheses. Thus, a precedence lower
617-
than ``or`` is chosen, option (2), see `Precedence`_ specification.
615+
short-circuit a boolean expression also containing ``or`` for
616+
``not None`` but falsy values, without explicit parentheses. Thus,
617+
a precedence lower than ``or`` is chosen, option (2), see
618+
`Precedence`_ specification.
618619

619620
Require parentheses when mixing ``??`` with ``and`` and ``or``
620621
--------------------------------------------------------------

0 commit comments

Comments
 (0)