Op 2005-01-13, Terry Reedy schreef <[EMAIL PROTECTED]>: > > "Antoon Pardon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Op 2005-01-13, Fredrik Lundh schreef <[EMAIL PROTECTED]>: >>> 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 -- http://mail.python.org/mailman/listinfo/python-list