
May 10, 2018
11:04 a.m.
On Wed, May 9, 2018, 11:53 PM Guido van Rossum <guido@python.org> wrote:
Oh, I hadn't even though of combining the two in one statement. That example is truly horrible (on first skim I didn't even notice it used two different assignment operators!) and strengthens my confidence that we should just disallow an un-parenthesized `:=` operator at the top level, where now the top level includes the RHS of a classic assignment.
IMO, I would strongly prefer calling an unparenthesized top-level ':=' a SyntaxError.