From the Google App Engine documentation:
“cursor() returns a base64-encoded cursor string denoting the position in the query’s result set following the last result retrieved.”
What does it return if the the last result retrieved IS the last result in the query set? Wouldn’t this mean that there is no position that can ‘follow’ the last result retrieved? Therefore, is ‘None’ returned?
If all results have been consumed, the cursor just points to that position.
In other words, the cursor points to where new results would appear if you were to add more items to the datastore. From the Datastore Queries documentation:
The
cursor()method will never returnNone.