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.
B
Brett Cannon committed
24117a748b02e0d2d028956c7b118f4ecd55361c
Parent: 9e924ed