[Python-3000] Stackable Blocks

Crutcher Dunnavant crutcher at gmail.com
Mon Apr 24 02:12:57 CEST 2006


On 4/23/06, Ivan Krstic <krstic at fas.harvard.edu> wrote:
> Crutcher Dunnavant wrote:
> > for file in open_files: if file.readable():
> >   ...
> >
> > for line in open(file): if line.strip():
>
> I don't like this. It looks unclean and adds an exception to the
> conventional Python rules while yielding no particular or significant
> benefit.

It doesn't add any exception, it changes how the block syntax works.


--
Crutcher Dunnavant <crutcher at gmail.com>
littlelanguages.com
monket.samedi-studios.com


More information about the Python-3000 mailing list