Python 3.9 is now generally available.

google.appengine.api.cmp_compat.cmp

Emulate Python 2 cmp in Python 3.

This is not necessarily a complete emulation; it's simply enough to support Titanoboa's port of apphosting.

a An object to compare
b Another object to compare

Negative if a is less than b, 0 if a equals b, and positive otherwise.