Repository navigation
Commit c074696
gh-65058: Document the grouping of conditional expressions (GH-162167)
The "Evaluation order" section said that expressions are always
evaluated from left to right, but a conditional expression evaluates
its condition first.
Add a sentence and an example showing that chained conditional
expressions group from right to left.
(cherry picked from commit 08784b2)
Co-authored-by: Lucas <lucasefernandes333@gmail.com>
Co-authored-by: Sam Joshva <samjoshva@gmail.com>
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
1 parent 308d20e commit c074696
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2191 | 2191 | | |
2192 | 2192 | | |
2193 | 2193 | | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
2194 | 2203 | | |
2195 | 2204 | | |
2196 | 2205 | | |
| |||
0 commit comments