(var)
return False
Checks whether var is Python Integer.

    This accounts for: long, int and mpz (if available).
Checks whether var is Python Integer.
Checks whether var is Python Integer .
def is_python_integer(var):
    """Checks whether var is Python Integer.

    This accounts for: long, int and mpz (if available).
    """
    if type(var) == mpz_type:
        return True
    if type(var) == int:
        return True
    return False
def is_python_integer ( var ) : if type ( var ) == mpz_type : return True if type ( var ) == int : return True return False