Y
Hacker News
new
|
ask
|
show
|
jobs
by
resurge
5132 days ago
I wonder why 430gj9j added exec..
print "Hello world\n"*100
Would have worked just fine.
1 comments
lloeki
5132 days ago
He abstracted this loop:
for i in xrange(100): statement
into:
exec "statement" * 100
The 'no exec' alternatives propose something not as generic since they can only print something a number of times.
link