title: Check if all values of iterable are zero
body: <p>Is there a good, succinct/built-in way to see if all the values in an iterable are zeros?  Right now I am using <code>all()</code> with a little list comprehension, but (to me) it seems like there should be a more expressive method.  I'd view this as somewhat equivalent to a <code>memcmp()</code> in C.</p>
  <pre><code>values = (0, 0, 0, 0, 0)
  # Test if all items in values tuple are zero
  if all([ v == 0 for v in values ]) :
      print 'indeed they are'
  </code></pre>
  <p>I would expect a built-in function that does something like:</p>
  <pre><code>def allcmp(iter, value) :
      for item in iter :
          if item != value :
              return False
      return True
  </code></pre>
  <p>Does that function exist in python and I'm just blind, or should I just stick with my original version?</p>
  <h1>Update</h1>
  <p>I'm not suggesting that <code>allcmp()</code> is the solution. It is an example of what I <em>think</em> might be more meaningful.  This isn't the place where I would suggest new built-ins for Python.</p>
  <p>In my opinion, <code>all()</code> isn't that meaningful.  It doesn't express what &quot;all&quot; is checking for.  You could assume that <code>all()</code> takes an iterable, but it doesn't express what the function is looking for (an iterable of <code>bool</code>s that tests all of them for <code>True</code>).  What I'm asking for is <em>some function like</em> my <code>allcmp()</code> that takes two parameters: an iterable and a comparison value.  I'm asking if there is a built-in function that does something similar to my made up <code>allcmp()</code>.</p>
  <p>I called mine <code>allcmp()</code> because of my C background and <code>memcmp()</code>, <strong>the name of my made up function is irrelevant</strong> here.</p>