Fredrik Lundh effbot at
Thu Apr 20 17:54:55 CEST 2000

Mark Hathaway <hathawa2 at> wrote:
> I've been discussing OO with Smalltalkers on comp.object. The
> issue/topic of blocks (as used in Smalltalk) comes up frequently.
> I am wondering how Python handles 'if's and 'for's which is where
> Smalltalk commonly uses it's blocks. How does Python do it?
> if <condition>:
>     <statements>
> for each in list:
>     <statements>

the statement blocks are inlined.


More information about the Python-list mailing list