a = b = 1 just syntactic sugar?
Fredrik Lundh
fredrik at pythonware.com
Fri Jun 6 23:09:33 EDT 2003
Ed Avis wrote:
> If you mean that the syntax is problematic, because the commas could
> belong to 'print' or to the list, it's a fair point. And I know that
> Python developers are keen to keep the syntax simple (and my complaint
> is mostly semantic). Still, I think that parenthesizing where
> necessary would not be unreasonable.
doesn't work:
>>> (print x)
File "<stdin>", line 1
(print x)
^
SyntaxError: invalid syntax
</F>
More information about the Python-list
mailing list