Reputation: 120927
According to the documentation, the map
function supports all query option keywords. I am, however, unable to produce the cursor
and the has_more
values, using map. How do you do that? If I use fetch
to produce result
, cursor
and has_more
I can no longer use map
since it does not work on simple lists.
Upvotes: 4
Views: 661
Reputation: 16890
You can't get a cursor out of map() -- the only way to get a cursor is to use a QueryIterator, or to call fetch_page() (which uses a QueryIterator internally). The has_more flag is only accessible by using fetch_page().
If you have a simple list, use Python's built-in map() function:
map(<function>, <list-of-entries>)
But perhaps you could tell us more about what you are trying to do?
Upvotes: 5