View source on GitHub |
Emulate Python 2 cmp in Python 3.
google.appengine.api.cmp_compat.cmp(
a, b
)
This is not necessarily a complete emulation; it's simply enough to support Titanoboa's port of apphosting.
Args | |
---|---|
a
|
An object to compare |
b
|
Another object to compare |
Returns | |
---|---|
Negative if a is less than b, 0 if a equals b, and positive otherwise. |