Python Rocks! - ASP problem?
Joe Smith
JoeSmith at bogusaddress.com
Wed Jan 19 05:13:43 EST 2000
I am a newbie as well. I don't know whether it is better or worse only time
will tell. The one place where I believe it causes a problem is with ASP. One
can do the following thing in vbscript
<%
if some_condition then
%>
<html stuff here>
<%
end if
%>
This conditionally put the html code into the page. If I remember right,
python can't do this in ASP because an end marker is needed. I would say that
python probably was not designed with ASP in mind.
tye4 wrote:
> I'm a python newbie.. but I like Python better than Perl (no ugly @$#@.. in
> syntax).
>
> Python does have one quirk: no end if or end loops
>
> if x == 10:
> print 'x is 10'
> print 'Hello world'
>
> # easy to get confused whether this line is in 'if' block or not
> Having an 'end' block would help tremendously.
>
> if x == 10:
> print 'x is 10'
> end if
> print 'Hello World'
>
> or
> for x in range(1, 10):
> print x,
> end loop
>
> Indentation is a confusing and lame way to separate what is inside a block
> and what's outside it.
>
> tye4
More information about the Python-list
mailing list