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.
diff --git a/Python/importlib.h b/Python/importlib.h
index 88b89ed..0e2c734 100644
--- a/Python/importlib.h
+++ b/Python/importlib.h
Binary files differ