don't know if it's a construct difference between frameworks or not, but it appears that the use of yeild has evolved further than th elink you posted (for python2.2)
http://www.python.org/dev/peps/pep-0342/ <http://www.python.org/dev/peps/pep-0342/>scroll down to examples - still used in a generator in the first example, but also for try/except's ----------------------- Visit My Sites! www.syrbot.com | My Site www.attackr.com | Latest Blog Posts www.superantispyware.com/superantispyware.html?rid=3971 Remove All The Spyware - Not Just The Easy Ones! On Wed, Feb 24, 2010 at 7:03 AM, Branko Vukelic <[email protected]> wrote: > On Wed, Feb 24, 2010 at 12:58 PM, Greg Milby <[email protected]> wrote: > > the yeild question is a very good point... the cherrypy chat guys use > that > > method OFTEN... really didn't think it was a webpy 'thing' - is it? > > GET and POST are methods. And as such, I think it makes perfect sense > we ``return`` stuff. I hope the OP meant that. AFAIK, yield is used in > generators: > > "The yield statement is only used when defining a generator function, > and is only used in the body of the generator function." > > ( > http://docs.python.org/reference/simple_stmts.html#grammar-token-yield_stmt > ) > > -- > Branko Vukelić > > http://foxbunny.tumblr.com/ > http://www.flickr.com/photos/16889...@n04/ > http://www.twitter.com/foxbunny > http://github.com/foxbunny > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <webpy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
