imp — Access the import internals — Python 3.16.0a2 documentation
Navigation index modules | next | previous | Python » 3.16.0a2 documentation » The Python standard library » Removed Modules » imp — Access the import internals | Theme | imp — Access the import internals ¶ Deprecated since version 3.4, removed in version 3.12. This module is no longer part of the Python standard library. It was removed in Python 3.12 after being deprecated in Python 3.4. The removal notice includes guidance for migrating code from imp to importlib .
The last version of Python that provided the imp module was Python 3.11 . Previous topic imghdr — Determine the type of an image Next topic mailcap — Mailcap file handling This page Report a bug Improve this page Show source « Navigation index modules | next | previous | Python » 3.16.0a2 documentation » The Python standard library » Removed Modules » imp — Access the import internals | Theme | © Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License. See History and License for more information. The Python Software Foundation is a non-profit corporation. Please donate. Last updated on Nov 20, 2026 (05:01 UTC). Found a bug ? Created using Sphinx 9.1.1.