On Nov 7, 12:00 pm, david <dromerotr...@gmail.com> wrote:
> Hello,
>
> How can I know how many items it returns a query?
> Example:
> eventos = db.GqlQuery ("SELECT * FROM Evento")
> How many items?
>
> Other question.
> How can I do random of numers in python?
>
> See you. Thanks.
python list size or eventos.count() work or already answered question
best way with more info following link,
http://stackoverflow.com/questions/421751/whats-the-best-way-to-count-results-in-gql
and merging pure python lists using multiple queries is also doable
breaking 1000 limit. where earlier random numbers was discussed:
http://groups.google.com/group/google-appengine/browse_thread/thread/b3b41fb86f62b229/bea0d6a880cf01fa?lnk=gst&q=weibull#bea0d6a880cf01fa

Nick Rosencrantz

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

Reply via email to