python and macros (again) [Was: python3: 'where' keyword]
Nick Coghlan
ncoghlan at iinet.net.au
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.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at email.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
More information about the Python-list
mailing list