yes and no.
You cannot do this:
def index():
yield 'a'
yield 'b'
yield 'c'
But you can do this:
def index():
def iterator():
yield 'a'
yield 'b'
yield 'c'
return iterator()
A web2py action must return something. It can return an iterator and the
iterator can use yield.
Functionally is the same. Syntactically it is a little different.
On Saturday, 21 September 2013 21:01:15 UTC-5, [email protected] wrote:
>
> With WSGI you can slowly return in a connecting using yield command or
> with a list or queue (in gevent), is this (and how is this) possible with
> web2py?
>
> Thank you in advance!
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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.