python and macros (again) [Was: python3: 'where' keyword]

Nick Coghlan ncoghlan at
Fri Jan 14 05:20:57 EST 2005

Antoon Pardon wrote:
> No I am applying set logic. Any string that is in the set of
> valid expressions is also in the set of valid statements.

According to Python's grammar, this is not the case. It requires a NEWLINE or 
";" token on the end to turn the expression into a statement. Actually appending 
either of those tokens means the string is no longer an expression.


Nick Coghlan   |   ncoghlan at   |   Brisbane, Australia

More information about the Python-list mailing list