summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index a71a4db4e9..85962bada4 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -32,6 +32,11 @@ try:
except:
pass
+def g():
+ yield 1
+GeneratorType = type(g())
+del g
+
class _C:
def _m(self): pass
ClassType = type(_C)