[web2py] Re: simple loop question
Anthony, Can you recommend any online tutorials or videos to help someone that doesn't know object oriented programming? Hopefully something that can be related to web2py so that I would learn that response.write() is a method, not an attribute. I just started writing an app without knowing oop and don't know how method relates to web2py MV or C. thanks, Alex On Friday, March 22, 2013 8:46:47 PM UTC-7, Anthony wrote: 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='Phowdy/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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: simple loop question
Hi Alex, www.programr.com has python object-oriented examples www.coursera.org has a python course in April. The mvc approach can be learned by trying the examples in web2py's on-line manual, using the welcome app that comes with the install. Trying examples yourself is a great way to learn web2py. Margaret On Saturday, March 23, 2013 9:37:06 AM UTC-5, Alex Glaros wrote: Anthony, Can you recommend any online tutorials or videos to help someone that doesn't know object oriented programming? Hopefully something that can be related to web2py so that I would learn that response.write() is a method, not an attribute. I just started writing an app without knowing oop and don't know how method relates to web2py MV or C. thanks, Alex On Friday, March 22, 2013 8:46:47 PM UTC-7, Anthony wrote: 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='Phowdy/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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: simple loop question
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='Phowdy/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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.