Semantic indentation (OpenGL)

William Tanksley wtanksle at dolphin.openprojects.net
Fri Oct 12 15:59:10 EDT 2001


On Fri, 12 Oct 2001 15:52:16 +0200, Marek Kroèák wrote:
>glBegin(GL_POINTS);
>	...
>	glVertex3f(...);
>	...
>glEnd();
>These are syntactically at the same level (compiler's point of view), but
>semantically not (library's point of view). Unfortunately python does not 
>allow me to use this formatting any more.

How about:

try:
  glBegin(GL_POINTS)
  glVertex3f(...)
finally: glEnd()

>(Marek Krocak)

-- 
-William "Billy" Tanksley



More information about the Python-list mailing list