15 Dec
2020
15 Dec
'20
4:39 a.m.
On 15/12/20 11:28 pm, Paul Sokolovsky wrote:
that table is not complete. For example, "," (comma) is a (context-dependent) operator in Python, yet that table doesn't have explicit entry for it. Unary "*" and "**" are other context-dependent operators. (Unary "@" too.)
Those things aren't considered to be operators. The term "operator" has a fairly specific meaning in Python -- it's not just "any punctuation mark". It's true that the operator precedence table won't tell you the precedence of everything in Python -- you need to consult the grammar for the rest. -- Greg