Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.datastore.datastore_stub_util.CompareEntityPbByKey

Compare two entity protobuf's by key.

a entity_pb2.EntityProto to compare
b entity_pb2.EntityProto to compare

<0 if a's key is before b's, =0 if they are the same key, and >0 otherwise.