1""" 21 3""" 4 5def _f(): pass 6FunctionType = type(_f) 7LambdaType = type(lambda: None) 8CodeType = None 9MappingProxyType = None 10SimpleNamespace = None 11 12def _g(): 13 yield 1 14GeneratorType = type(_g()) 15 16class _C: 17 def _m(self): pass 18MethodType = type(_C()._m) 19 20BuiltinFunctionType = type(len) 21BuiltinMethodType = type([].append) 22 23del _f 24 25# print only the first 8 chars, since we have different str rep to CPython 26print(str(FunctionType)[:8]) 27print(str(BuiltinFunctionType)[:8]) 28