New GitHub issue #92316 from MengXiangge:<br>
<hr>
<pre>
Hi, I'm trying to serialize & deserialize python types, and I hit the error when handling types.FunctionType.
To repro the error,
from types import FunctionType
FunctionType.__module__ # builtin
FunctionType.__qualname__ # function
import importlib
import sys
importlib.import_module(module_name)
module = sys.modules[module_name]
getattr(module, "function") # throw exception module 'builtins' has no attribute 'function'
I think it's because we didn't include FunctionType in builtin module, please educate me if I'm wrong.
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/92316">View on GitHub</a>
<p>Labels: </p>
<p>Assignee: </p>