def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
python类SmallInteger()的实例源码
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big
def _integer_compare(t1, t2):
t1_small_or_big = (
'S' if isinstance(t1, sqltypes.SmallInteger)
else 'B' if isinstance(t1, sqltypes.BigInteger) else 'I'
)
t2_small_or_big = (
'S' if isinstance(t2, sqltypes.SmallInteger)
else 'B' if isinstance(t2, sqltypes.BigInteger) else 'I'
)
return t1_small_or_big != t2_small_or_big