Thursday, April 10, 2008

Now this is very cute :


[(f.title,f.key())
for f in db.GqlQuery("select * from Film order by title")]


See that? A GQL (query language for GAE) query object automatically supports iteration, so you can use it in a list comprehension.

No comments: