[plug] I would write 500 lines, and I would write 500 more...

Derek Fountain derekfountain at yahoo.co.uk
Mon Dec 15 17:02:14 WST 2003


> Yeah :-)  I was thinking in terms of calling print repeatedly, rather
> than printing the 500 copies of message.  I still think that an
> equivalent of C's for loop (the "swiss army chainsaw" of iteration)
> would be handy in Python.

I agree, although the 'for' construct is unwieldy for a simple counter:

print "I will not throw paper aeroplanes in class\n" for(1..500);

Perhaps it's the lack of this sort of syntax which makes Python easier to use 
than many other languages? ;o)

-- 
> eatapple
core dump




More information about the plug mailing list