Thanks, I ended finding out more about how iterators behave and why they're there during my absence here. Thanks for the support anyway!
~ theiostream. On Nov 6, 3:19 pm, Anand Chitipothu <[email protected]> wrote: > 2011/11/6 andrei <[email protected]>: > > > 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 [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.
