visual indentation
Evan Simpson
evan at 4-am.com
Fri Aug 22 17:07:09 EDT 2003
Hilbert wrote:
> RiWorldBegin()
> RiColor(1.0,1.0,1.0)
> RiSurface('constant')
> RiSphere(1.0,-1.0,1.0,360)
> RiWorldEnd()
>
> Is there any way to use such "visual" indentation in python?
If all of the lines that you want to indent in this fashion are
expressions, not statments, then you could do this:
RiWorldBegin()
( RiColor(1.0,1.0,1.0) )
( RiSurface('constant') )
( RiSphere(1.0,-1.0,1.0,360) )
RiWorldEnd()
If there are statements involved, you could do this:
RiWorldBegin()
1; RiColor(1.0,1.0,1.0)
1; RiSurface('constant')
1; RiSphere(1.0,-1.0,1.0,360)
RiWorldEnd()
Both are ugly, of course.
Cheers,
Evan @ 4-am
More information about the Python-list
mailing list