python3: 'where' keyword
Nick Coghlan
ncoghlan at iinet.net.au
Sat Jan 8 01:47:16 EST 2005
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 | ncoghlan at email.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.skystorm.net
More information about the Python-list
mailing list