Teach the types module about generators.  Thanks to James Althoff on the
Iterators list for bringing it up!
diff --git a/Lib/types.py b/Lib/types.py
index a71a4db..85962ba 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -32,6 +32,11 @@
 except:
     pass
 
+def g():
+    yield 1
+GeneratorType = type(g())
+del g
+
 class _C:
     def _m(self): pass
 ClassType = type(_C)