I was looking at
https://docs.python.org/3.10/reference/expressions.html and I found a
few minor opportunities for improvements:
1. Lowest priority?
At section 6.13, it says: “Conditional expressions (sometimes called a
“ternary operator”) have the lowest priority of all Python
However, further down below in the "6.17. Operator precedence"
section, the if-else expression has higher precedence than both lambda
and walrus. Maybe those two are not technically "operations", but
since they are under operator precedence, they are operations.
It's confusing, and it's a minor detail, but still worth fixing.
2. Indexing the walrus operator
If you look at the main index: https://docs.python.org/3.10/genindex-all.html
You can find most operators, but you can't find the walrus operator.
Try Ctrl+F and search for "walrus", ":=", "named expression",
"assignment expression", "assignment"→"expression". You can't find
them anywhere in the index.
Sure, you can find them at the main search page:
Again, a minor issue, but still worth fixing.
And since I know the walrus operator is new, I wonder if any of the
newer sections of the documentation could also suffer from the same
Denilson Figueiredo de Sá Maia