closures
Fredrik Lundh
effbot at telia.com
Thu Apr 20 11:54:55 EDT 2000
Mark Hathaway <hathawa2 at marshall.edu> 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.
</F>
More information about the Python-list
mailing list