title: python list comprehension with multiple 'if's
body: <p>We all know python's</p>
  
  <pre><code>[f(x) for x in y if g(x)]
  </code></pre>
  
  <p>syntax.</p>
  
  <p>However the 
  <a href="http://docs.python.org/2/library/ast.html#abstract-grammar" rel="noreferrer">AST</a> representation of list comprehension has room for more than one 'if' expression:</p>
  
  <pre><code>comprehension = (expr target, expr iter, expr* ifs)
  </code></pre>
  
  <p>Can somebody give me an example of python code that would produce an AST with more than one 'if' expression?</p>