Indentation for code readability

Mark Jackson mjackson at alumni.caltech.edu
Fri Mar 30 09:40:55 EDT 2007


"DE" <devrim.erdem at gmail.com> writes:
> Hello,
> 
> Here is what I do in C++ and can not right now in python :
> 
> pushMatrix()
> {
>      drawStuff();
> 
>      pushMatrix();
>      {
>             drawSomeOtherStuff()
>      }
>      popMatrix();
> }
> popMatrix();
> 
> The curly brackets have no functional meaning but increase the
> readability significantly.

You are e. e. cummings, and I claim my £5.

-- 
Mark Jackson - http://www.alumni.caltech.edu/~mjackson
	Every 10 years we say to ourselves, "If only we had
	done the right thing 10 years ago."
				- Thomas Friedman





More information about the Python-list mailing list