isinstance(x, int)  is considered better form.