closures

Mark Hathaway hathawa2 at marshall.edu
Thu Apr 20 15:16:31 CEST 2000


Hi all,

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>



Mark S. Hathaway
email: hathawa2 at marshall.edu



More information about the Python-list mailing list