Skip to main content
compare_to(other)[source]

Compares this version with another, build number included. (The comparison operators, ==, < and >, compare the first four components only.)

Parameters

other (GPUdb.Version or str) –

The version to compare this one with.

Returns

-1 if this version is older, 1 if it is newer, 0 if the two are –

the same, build number included.