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

Paul Rubin http
Thu Jan 13 18:30:58 EST 2005


"Fredrik Lundh" <fredrik at pythonware.com> writes:
> > Huh?  Expressions are not statements except when they're "expression
> > statements"?  What kind of expression is not an expression statement?
> 
> any expression that is used in a content that is not an expression statement,
> of course.

Come on, that is vacuous.  The claim was "expressions are not
statements".  But it turns out that expressions ARE statements.  The
explanation is "well, that's because they're expression statements".
And there is no obvious case of an expression that can't be used as a
statement.  So it's not inherently obvious that there needs to be any
kind of statement that can't be used as an expression.  It's just an
artifact.  Whether the artifact is a desirable one is a matter of
discussion.



More information about the Python-list mailing list