title: Is there a better way of checking multiple variables are a single type in Python?
body: <pre><code>    if not [True]*3 == [isinstance(i, int) for i in [days, months, years]]:
          raise TypeError('days, months, and years must be int type not %s %s %s'
                          % (type(days), type(months), type(years)))
  </code></pre>
  
  <p>Basically want to check if days, months, and years is an int, the most compact way I could thing of is above but I'm not sure it's the best but I believe it would be better than multiple if statements for each int.</p>