Issue #13959: Keep imp.get_magic() in C code, but cache in importlib
for performance. While get_magic() could move to Lib/imp.py, having to support PyImport_GetMagicNumber() would lead to equal, if not more, C code than sticking with the status quo.
Showing
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment