response.write() is a method, not an attribute (even if it were an 
attribute, you would be overwriting it repeatedly, not appending to it).

Anthony

On Friday, March 22, 2013 6:51:01 PM UTC-4, Alex Glaros wrote:
>
> I'm trying to write a simple loop in default.py.  What's wrong with this 
> below?  Thanks, Alex Glaros
>
> def new2():
>     y=5
>     while y > 0:
>         response.write='<P>howdy</P>'
>         y=y-1
>     pass   
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to