a = b = 1 just syntactic sugar?

Martin v. Löwis martin at v.loewis.de
Tue Jun 10 07:14:35 CEST 2003

"Greg Ewing (using news.cis.dfn.de)" <g2h5dqi002 at sneakemail.com> writes:

> Depends on the parser generator. Yacc warns about ambiguities
> when processing the grammar; if you ignore the warnings, at
> runtime it does whatever it thinks best (which might not be
> what *you* thought best:-[). 

Actually, I believe it will chose the alternative that is earliest in
the YACC input file (atleast bison does that).


More information about the Python-list mailing list