Help! IIS and Python

gbreed at cix.compulink.co.uk gbreed at cix.compulink.co.uk
Thu Feb 14 06:32:11 EST 2002


Tim Roberts wrote:

> Since we're on the subject of Python in ASP programming, how do you use 
> the
> <%=xxx%> trick with indentation?  This fails with an indentation error, 
> > for
> example:
> 
> <%
> for i in range(5):
> %>
>   <%="aaa%d" % i %>

<%
formatter = """
  aaa%d
"""

for i in range(5):
  Response.Write(formatter%i)
%>

Why not?


               Graham



More information about the Python-list mailing list