Gregory (Grisha) Trubetskoy
grisha at modpython.org
Mon Aug 30 12:05:20 EDT 2004
Miikka - Probably the best way to understand how it works is to look at the Python code that the page would produce. Look at the "Debugging" section in this article on how to get the Python code: http://www.onlamp.com/pub/a/python/2004/02/26/python_server_pages.html Grisha On Mon, 30 Aug 2004, Miikka Miettinen wrote: > I wonder what makes the comment in the outer loop significant. The first > piece of code works, but the second doesn't. Is this a bug or have I > misunderstood the syntax? > > --- > <% > for i in range(5): > # begin > %> > <%= i %><br> > <% > for j in range(5): > %> > <%= i %>, <%= j %><br> > <% > %> > --- > <% > for i in range(5): > %> > <%= i %><br> > <% > for j in range(5): > %> > <%= i %>, <%= j %><br> > <% > %> > --- > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|