diff -r e5f34158a59c Lib/types.py --- a/Lib/types.py Mon Mar 06 12:18:02 2017 -0400 +++ b/Lib/types.py Tue Mar 07 10:47:05 2017 +0100 @@ -3,6 +3,7 @@ Types that are part of optional modules (e.g. array) are not listed. """ import sys +import org.python.core # Iterators in Python aren't a matter of type but of protocol. A large # and changing number of builtin types implement *some* flavor of @@ -43,7 +44,7 @@ def _f(): pass FunctionType = type(_f) LambdaType = type(lambda: None) # Same as FunctionType -CodeType = type(_f.func_code) +CodeType = org.python.core.PyBaseCode # Support compiled bytecode def _g(): yield 1