From: Tim Hammerquist Date: 2003-08-18T09:19:38+09:00 Subject: Re: Wish: Python-style indenting Daniel Carrera graced us by uttering: > I also like flexible syntax: > > 1. iterator { some block } for item in iterator: some(statements); separated; by(semicolons) > 2. puts "hello" if condition if condition: print "hello" (This doesn't really seem to be an issue of declaring blocks, but...) > 3. def twice() yield; yield; end While the yield operator might function quite differently in Python, function definition remains fairly similar: def twice(): somefunc(); a_keyword; a_func() FWIW, Tim Hammerquist -- "Elbonians are our best friends. Now excuse me while I tenderize myself." -- Ratbert