Python slang

Random832 random832 at fastmail.com
Sun Aug 14 14:19:11 EDT 2016


On Wed, Aug 10, 2016, at 19:57, Michael Torrie wrote:
> But the grammar must still be a bit complex as sometimes the LHS of the
> = is an expression, as well as the RHS.

The only place that an *arbitrary* expression (including e.g. = as
equality) can appear in the LHS is inside parentheses, otherwise you're
limited to dot and call/index (which are both parentheses, which isn't a
problem for the parser since no object can do both and it's the same
kind of expression) just like in Python.



More information about the Python-list mailing list