Paul Rubin wrote:
the suite has its own scope so any variable created there is local to
the suite plus the following statement.  The scope vanishes after the
statement.

The second part of the idea is to give the statement greater prominence and 'hide' the uninteresting setup (the contents of the where clause).


Putting the statement of interest after the where suite still gives the benefits of avoiding namespace clutter, but doesn't really help readability (it makes it worse, if you ask me).

Particularly, what if the next statement is a compound statement?

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to