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

Antoon Pardon apardon at forel.vub.ac.be
Fri Jan 14 03:24:17 EST 2005


Op 2005-01-13, Terry Reedy schreef <tjreedy at udel.edu>:
>
> "Antoon Pardon" <apardon at forel.vub.ac.be> wrote in message 
> news:slrncucmeo.5qu.apardon at rcpc42.vub.ac.be...
>> Op 2005-01-13, Fredrik Lundh schreef <fredrik at pythonware.com>:
>>> Antoon Pardon wrote:
>>>
>>>> Well, it seems that Guido is wrong then. The documentation clearly
>>>> states that an expression is a statement.
>>>
>>> no, it says that an expression statement is a statement.  if you don't
>>> understand the difference, please *plonk* yourself.
>>
>> And what else is an expression statement but an expression (list) used
>> as a statement.
>
> Whereas an expression used within a statement is not a statement, and that 
> is the difference.
>
> And of course, statements, in general, are not expressions and are not used 
> within statements (except within compound statements).

Here you are stating the opposite of what Guido is supposed to have
said.

IMO we have a: dogs are mamals kind of relationship in Python.

Every expression can be used where a statement is expected.
(And this can be worded as: every expression is a statement.)

Not every statement can be used where an expression is expected.

-- 
Antoon Pardon



More information about the Python-list mailing list