commit | 24117a748b02e0d2d028956c7b118f4ecd55361c | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Fri Apr 20 18:04:03 2012 -0400 |
committer | Brett Cannon <brett@python.org> | Fri Apr 20 18:04:03 2012 -0400 |
tree | da68d8bba60af0d5b373f330f0c30b9af3bed28b | |
parent | 9e924ed1ac516107a91745ca6210b66388f15468 [diff] |
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