title: What is the most pythonic way to check if multiple variables are not None?
body: <p>If I have a construct like this:</p>
  
  <pre><code>def foo():
      a=None
      b=None
      c=None
  
      #...loop over a config file or command line options...
  
      if a is not None and b is not None and c is not None:
          doSomething(a,b,c)
      else:
          print "A config parameter is missing..."
  </code></pre>
  
  <p>What is the preferred syntax in python to check if all variables are set to useful values?  Is it as I have written, or another better way?</p>
  
  <p>This is different from this question:
  <a href="https://stackoverflow.com/questions/3965104/not-none-test-in-python">not None test in Python</a> ... I am looking for the preferred method for checking if many conditions are not None.  The option I have typed seems very long and non-pythonic.</p>