>I just can't stand using braces for block delimiting,
>can't we have something like the code below work in
>PSP?
>
><% for i in range(5): $%>
><%= i %> <% [tab]z=i*i [tab]res.write(z) $%> <% [tab]res.write(i*i*i) $%>
><% end %>

I find that it's just easier to write all my python code with normal 
indents inside <% %> and use res.write instead of <%= or any special PSP 
tokens.  So, a for loop would look something like this:

<%
for i in range(5):
     res.write(i)
     z = i * i
     res.write(z)
     res.write(i * i * i)
res.write (all done!<p>}
%>

I have yet to find an application where this doesn't work, and it seems a 
lot easier to read.  Have you run into a problem writing the code out like 
this?


-----------------------------------------------------------------
David Casti                                       Managing Partner
Neosynapse                                      www.neosynapse.net


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to