2011/11/6 andrei <andre...@gmail.com>:
> db.select returns webpy's flavored iterator, to get a list from it
> wrap the result in list()
>
> p = list(db.select(person))

You can even do this:

p = db.select(person).list()

I find it more convenient than wrapping it in list(...).

Anand

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to