title: Pythonic Style for Multiline List Comprehension
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5809059/line-continuation-for-list-comprehensions-or-generator-expressions-in-python">Line continuation for list comprehensions or generator expressions in python</a>  </p>
  </blockquote>
  
  
  
  <p>What is the the most pythonic way to write a long list comprehension?  This list comprehension comes out to 145 columns:</p>
  
  <pre><code>memberdef_list = [elem for elem in from_cache(classname, 'memberdefs') if elem.argsstring != '[]' and 'std::string' in null2string(elem.vartype)]
  </code></pre>
  
  <p>How should it look if I break it into multiple lines?  I couldn't find anything about this in the Python style guides.</p>