title: How do I specify the literal generator type in Python?
body: <p>I need to check if a certain variable is a generator object.
  How would I specify the literal generator type in place of the ??? below?</p>
  
  <pre><code>def go():
      for i in range(999):
      yield i
  la = go()
  print repr(type(la))
  
  &lt;type 'generator'&gt;
  
  assert type(la) == ???
  </code></pre>